Compiler directives: #set

Syntax

#set variable value

 

Parameters

variable - global variable of type int.

value - value to assign. Integer constant, global int variable, or user-defined function that returns int. The user-defined function is called at compile time; it must not have parameters.

 

Remarks

Initializes global int variable at compile time.

 

Global variables of type int can be used with compiler directives. Global variables are created at compile time.

 

Example

int+ g_var
#set g_var getgvar
...
#if g_var
...