Directive | Description |
#define var value | Defines the variable var and assigns value to it. Unlike the C/C++ preprocessor variable may be defined multiple time. |
#ifdef var | Removes the definition of the variable var. |
#pragma getbool var desc | Defines a boolean variable var. The content of the variable will be keyed in from the use in a dialog box created from the IDE. desc is the description shown beside the GUI element. |
#pragma getstring var desc | Like #pragma getbool, but the variable is a string. |
#pragma getfile var desc | Like #pragma getbool, but the variable is a path to a file. |
Some variables are allready defined at the start of the macro processor:
Name | Description |
__LINE__ | Number of the current line; starts with one. |
__FILE__ | Filename of the template file; complete path. |
__DATE__ | Current date, format mmm dd yyyy. |
__TIME__ | Current time, format: hh:mm:ss. |
__COMPILER__ | Name of underlying compiler. |
__APPLET__ | Name of the least recently compiled applet. |
__VERSIONX_X | Major version of the java runtime environment, the "X" are replaced by the current version number. |
__VERSIONX_X_X | Bugfix version of the java runtime environment, the "X" are replaced by the current version number. |
And finally, some variables will be evaluated after end of execution
of the macro processor:
Name | Description |
__RELPATH__ | Suggested path of the resulting source file, relative to the project directory. |
__NAME__ | Suggested filename of the resulting source file. |
__EXT__ | Suggested filename extension of the resulting source file. This value is also used to determine the syntax coloring algorithm. |
__ASSERT__ | Flag; if defined, the IDE assumes that compilation of this file will lead to a class containing assert methods. If you don't know what this means, simply don't use this name. See Assert.tpl. |