Data Definition Language (DDL) Reference Manual

DDL Compiler Commands
Data Definition Language (DDL) Reference Manual529431-004
9-18
CIFDEF, CIFNDEF, and CENDIF
CIFDEF, CIFNDEF, and CENDIF
The CIFDEF, CIFNDEF, and CENDIF commands generate the compiler directives
#ifdef, #ifndef, and #endif, respectively, for C output.
identifier_name
is the name of the identifier affected by the command.
The DDL compiler does not store identifier-name in the dictionary.
Each CIFNDEF or CIFDEF command have a corresponding CENDIF command.
After closing a C source code file, the DDL compiler checks whether the CIFNDEF and
CIFDEF commands match the CENDIF commands. If not, the DDL compiler issues a
warning.
Before generating C output for CENDIF command, the DDL compiler checks for the
corresponding CIFDEF or CIFNDEF command. If the DDL compiler does not find the
corresponding command, then it issues a warning and does not produce output for the
CENDIF command.
You can nest CIFNDEF and CIFDEF commands
{ CIFNDEF } identifier_name
{ CIFDEF }
CENDIF