Test the value of a definition and compile the following code if the result is true.
Syntax: #ifdef keyword operator value
|
keyword |
Required. The keyword to check |
| operator | = or <> |
| value | The value to test for (This is case sensitive) |
Example:
#define mode 2 #if mode=1 Call mode1() #endif #if mode=2 Call mode2() #endif Also See: #define, #undefine, #ifdef, #ifndef, #else, #elseif, #endif