Keil™, An ARM® Company

Cx51 User's Guide

Defined

The preprocessor defined operator is used in constant expressions to determine if an identifier is defined (by the #define preprocessor directive). If the specified identifier is defined, the value is true (non-zero). If the symbol is not defined, the value is false (zero). The defined operator is specified as follows:

defined (identifier)

or

defined identifier

The defined operator may be used in #if or #elif directives only.