Macros

Rax provides a number of pre-processor macros listed below.

__EXE_PATH__.  Expands to the full path of the Rax interpreter's executable. It is particularly useful when referring to external functions and modules bundled with Rax distribution. For example, to include the charting module use:

    %include __EXE_PATH__ "rx_GraphicalLibrary/SimpleCharts.rax";
             

__EXE_BASENAME__.  Expands to the name of the Rax interpreter's executable (without the path).

__CWD__.  Expands to the Rax interpreter's current working directory.

__FILE__.  Expands to the name of the current Rax script.

__LINE__.  Expands to the current line number in the Rax script.

__BUF__.  Expands to the contents of the current line in the Rax script.

__DB__.  Expands to the name of the current SQL back end.

__DATE__.  Expands to the current date and time.