Keil™, An ARM® Company

Cx51 User's Guide

#if

The #if directive tests an expression and if the result is true (non-zero) allows the compiler to process subsequent text (until the next #else, #elif, or #endif directive). If the result is false (zero), subsequent text is not processed by the compiler.

#if expression
.
.
.
#endif

Related Knowledgebase Articles