The C preprocessor provides the ability to perform macro
substitution, conditional compilation, and inclusion of named files.
Preprocessor directives, lines beginning with
possibly preceded by white space, are used to communicate with the
The following sections describe the preprocessor directives and operators available with the DEC C compiler:
#undefdirectives, and the
##operators (Section 8.1)
#endifdirectives, and the
definedoperator (Section 8.2)
#includedirective (Section 8.3)
#linedirective (Section 8.4)
#pragmadirective (Section 8.5)
#errordirective (Section 8.6)
#) (Section 8.7)
Preprocessor directives are independent of the usual scope rules; they remain in effect from their occurrence until the end of the compilation unit or until their effect is canceled.
See Section 8.2 for more information about conditional compilation. See your platform-specific DEC C documentation for implementation-defined information about preprocessor directives.
The ANSI standard allows only comments as text following a preprocessing directive. The DEC C compiler issues a warning if this syntax rule is violated in all modes but the strict ANSI mode, in which it issues an error message.