DDL Compiler Commands
Data Definition Language (DDL) Reference Manual — 426798-002
9- 17
CIFDEF, CIFNDEF, and CENDIF 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.
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.
{ CIFNDEF identifier_name | CIFDEF identifier_name
}
CENDIF
Содержание DDL D40
Страница 36: ...Introduction to DDL Data Definition Language DDL Reference Manual 426798 002 1 14 Examining a Dictionary ...
Страница 66: ...Named Constants Data Definition Language DDL Reference Manual 426798 002 4 10 Standard SPI Constants ...
Страница 230: ...Dictionary Manipulation Statements Data Definition Language DDL Reference Manual 426798 002 8 14 SHOW USE OF Statement ...
Страница 370: ...Dictionary Maintenance Data Definition Language DDL Reference Manual 426798 002 10 24 Converting a Dictionary ...
Страница 456: ...Sample Schemas Data Definition Language DDL Reference Manual 426798 002 B 12 ASSNDDL Statements ...
Страница 470: ...DDL Data Translation Data Definition Language DDL Reference Manual 426798 002 C 14 ...
Страница 528: ...Dictionary Reports Data Definition Language DDL Reference Manual 426798 002 E 8 Requesting Reports ...
Страница 552: ...DDL Alignment Rules Data Definition Language DDL Reference Manual 426798 002 H 4 FIELDALIGN_SHARED8 Alignment Rules ...
Страница 576: ...Index Data Definition Language DDL Reference Manual 426798 002 Index 22 Special Characters ...