Actions
EmSys
C - Conditional Compilation
From EdWiki
Conditional Compilation
- It is possible to control preprocessing itself with conditional statements that are evaluated during preprocessing. This provides a way to code selectively, depending on the value of conditions evaluated during compilation.
- The conditional statements areĀ : #if, #elif, #else, #endif, #ifdef, #ifndef, and #defined
- The #if line evaluates a constant integer expression. If the expression is non-zero, subsequent lines are included until an #endif or #elif or #else is encountered.
- The #ifdef and #ifndef are specialized forms that test whether a name is defined.