EnglishРусский  
The project is closed! You can look at a new scripting language. It is available on GitHub.
Also, try our open source cross-platform automation software.

Ads

Installer and installation software
Commercial and Freeware installers.

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

$_FILEThe full name of the current source file.
$_LINEThe current line of the source file.
$_DATEThe current date in the format DDMMYYYY.
$_TIMEThe current time in the format HHMMSS.
$_WINDOWSEquals 1 in Windows.
$_LINUXEquals 1 in Linux.

Related links