Directive: Alias |
The 'alias' directive tells the compiler to import an external function if it is used in the source code. Syntax: "alias" identifier [ ( "for" string ) | "ascii" | "unicode" ] "in" string [ "paramcount" "=" integer ] [ "restorestack" ] ";"
The first identifier is the name of the symbol which refers to the function - something like an alias. The first string is the name of the function, the second is the name of the library. You may choose to make the compiler check whether the function calls have enough parameters by append "paramcount = " and the number of parameters. Some functions - for instance "wsprintf" and "wvsprintf" - leaves it to the programmer to restore the stack after the call. To make the compiler restore the stack after calling this external function, append "restorestack". If not 'for' is specified, the compiler will use the alias name as function name. |