Using preprocessor directives
Preprocessor directives define preliminary operations that the preprocessor performs on script code before the code is parsed and executed by the scripting engine. The operations can include text substitution, the inclusion or exclusion of sections of the source code, and the inclusion of source code from another file.
You can use preprocessor directives in the following UNICOM Intelligence script files:
▪mrScriptBasic script (.mrs) files.
▪Data management scripting (.
dms) files. All preprocessor directives can be used inside and outside of sections and events in DMS scripts.
Preprocessor directives are not supported in either the metadata or routing sections of Interview Script (.mdd) files.
Supported preprocessor directives
Preprocessing is performed by the
mrPrePro preprocessor, which supports the C99/C++ preprocessor functionality. However, this section only describes those preprocessor directives that might be useful to UNICOM Intelligence script writers.
For a full list of C99/C++ preprocessor directives, see:
Syntax
A preprocessor directive statement must occupy a single line only, and there cannot be more than one statement in any one line. Preprocessor directive names are not case sensitive, but are typically written in lower case.
See also