Keil Logo

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.

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.