Compiler directives: #compile

Syntax

#compile[+|*] "macro"

 

Parts

macro - name of a macro or function.

Options:

+ macro is folder (compile all items in folder);

* compile and execute. macro must be user-defined function. It runs while compiling, in QM main thread. This is useful if you want to set global or environment variables that are used later while compiling current macro (with #if, etc).

 

Remarks

Compiles macro. It does not "include" or call it, but just compiles (only if it is not already compiled). Usually, it is used to compile macros or functions that contain various declarations.

 

See also: ref.

 

Example

#compile "toolhelp"