The compelse Statement

The compelse statement works together with the compif and compend compiler statements to create a compile-time if-else statement that enables you to control whether or not sections of code should be included in the compiler output. If the comparison expression in the compif statement is false then code immediately following the compelse statement will be included in the executable. The compelse block ends when the compiler finds the next compend statement. The syntax of the compelse statement is shown in the example below.

 compif EQ, sizeof(arg3), 2
   // compile this if sizeof(arg3) == 2
   // compile this if sizeof(arg3) != 2

Generated by  doxygen 1.6.2