The preprocessor performs various transformations on source code as the DM compiler reads the file. It may be used to define macros—that is words which are replaced by other fragments of code. It is also possible to insert other source code files and to conditionally compile or not compile sections of code.

Preprocessor commands are called directives. They are placed on a line by themselves and always begin with a hash symbol #. The preprocessor directives recognized by DM are the same as standard C compilers: “

<a name="/DM/preprocessor"></a><code><a href="#/DM/preprocessor/define">#define</a>
<a href="#/DM/preprocessor/if">#if</a>
<a href="#/DM/preprocessor/elif">#elif</a>
<a href="#/DM/preprocessor/ifdef">#ifdef</a>
<a href="#/DM/preprocessor/ifndef">#ifndef</a>
<a href="#/DM/preprocessor/else">#else</a>
<a href="#/DM/preprocessor/endif">#endif</a>
<a href="#/DM/preprocessor/include">#include</a>
<a href="#/DM/preprocessor/pragma">#pragma</a>
<a href="#/DM/preprocessor/error">#error</a>
<a href="#/DM/preprocessor/warn">#warn</a>
</code>