PROCTYPE Define procedure type Directive
PROCTYPE procname [procedure_description] ; Ideal mode
procname PROCTYPE [procedure_description] ; MASM mode
Declares a procedure type. Describes a procedure but does not create a
prototype for it.
Since procedure types don't allocate data, you can't create an
instance of a procedure type.
You can use a procedure type as a template for a prototype or a
procedure declaration, for example:
PROCTYPE footype pascal NEAR :word, :dword, :word
PROCDESC protof footype
PROC foo footype ; Pascal near procedure
ARG a1:word, a2:dword, a3:word ; Ensures type checking
; ...
MASM ; Can't do this in Ideal mode !?
CALL [footype PTR bx], ax, ds bx, cx ; No error