DDL Compiler Commands
CIFDEF, CIFNDEF, and CENDIF Commands
This subsection describes these three commands as a group.
CIFDEF Command
The CIFDEF command generates a #ifdef compiler directive for a C source file. It
instructs the DDL compiler to generate the #ifdef compiler directive in an opened
C output file.
CIFNDEF Command
The CIFNDEF command generates #ifndef compiler directive for a C source file. It
instructs the DDL compiler to generate the #ifndef compiler directive in an opened
C output file.
CENDIF Command
The CENDIF command generates a #endif compiler directive for a C source file. It
instructs the DDL compiler to generate the #endif compiler directive in an opened
C output file.
{ CIFNDEF identifier_name | CIFDEF identifier_name
CENDIF
identifier_name
Specifies the identifier affected by the command.
CIFDEF, CIFNDEF, CENDIF Command Guidelines
The following points are guidelines for using the CIFDEF, CIFNDEF, and CENDIF
commands:
Each CIFNDEF and CIFDEF command must be closed by one CENDIF command.
The DDL compiler allows the nesting of CIFNDEF and CIFDEF commands.
DDL does not store the identifier name following the CIFNDEF or CIFDEF
statement in the DDL dictionary.
After closing any C source file, the DDL compiler checks whether the CIFNDEF
and CIFDEF compiler commands match with the CENDIF compiler commands. If
the commands do not match, then DDL generates a warning message.
Before generating C output for CENDIF command, DDL first checks for the
corresponding CIFDEF or CIFNDEF command. If DDL does not find the
corresponding command, then no output is produced for the CENDIF command
and DDL gives a warning message.
Data Definition Language (DDL) Reference Manual—426798-002
CIFDEF, CIFNDEF, and CENDIF Commands
9- 17
}