If a keyword or variable is defined, then compile the following code. This will not detect variables defined inside a library.
Syntax: #ifdef keyword or variable
|
keyword |
Required. The keyword or variable to check |
Notes:
Example:
#ifdef testCode ..... #endif Also See: #define, #undefine, #if, #ifndef, #else, #elseif, #endif