MvIFDEF#
Within an <MvIFDEF>
block that does not generate code, the compiler still performs syntax and logical parsing of the source, so tags that require end tags (e.g., <MvCALL>
and </MvCALL>
) are still checked and matched.
Syntax
<MvIFDEF NAME = "string: { expression } | literal">
Attributes#
Attribute | Description |
---|---|
NAME |
The name of a symbolic code passed on the compiler command line. |
Examples#
Debugging script will be included in the compiled program only if the symbolic code DEBUG
is passed on the compiler command line:
<MvIFDEF NAME="DEBUG">
... Script included in the output if DEBUG is set ....
</MvIFDEF>
To set the symbol(s) at compile time, use the -D
flag:
mvc -D DEBUG [-D ANOTHER_SYMBOL] source.mv