BlitzMax/Language/Conditional Compiling

Conditional compiling allows you to turn compiling on or off from within your program depending on the environment the program is being compiled for.

Conditional compiling works a bit like an If statement, but takes the form:


 * ?Identifier

The ? must appear at the start of a new line, and Identifier should be one of the following:

Identifier may also be preceded by Not to invert the result.

An ? on its own always turns compiling on.

For example:

?Debug 'Any code here is only compiled in debug mode. ?Not Debug 'Any code here is only compiled in release mode. ? 'Code here is always compiled.