Macros
Macros are constants that are substituted during compilation. Macros can be used as identifiers, numbers, strings, binary data and collections. To substitute a macro for its value, you should specify the name of the macro between the '$' characters. If a macro is followed by a character that cannot be used in a name, you can leave out the '$' character at the end. Macros are not variables and you cannot assign any values to them. Macros are defined with the define command. You can also use macros for conventional compilation in the ifdef statement.
define {
a = "str"
b = 10
}
...
print( "\$a$ing \( $b + 20 )" )
There are the following predefined macros. You cannot redefine them.
Predefined macros
$_FILE | The full name of the current source file. |
$_LINE | The current line of the source file. |
$_DATE | The current date in the format DDMMYYYY. |
$_TIME | The current time in the format HHMMSS. |
$_WINDOWS | Equals 1 in Windows. |
$_LINUX | Equals 1 in Linux. |