The compend Statement

The compend statement works together with the compif and compelse 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. The compif and compelse blocks end when the compiler finds the next compend statement. The syntax of the compend 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