HP C/iX Reference Manual (31506-90011)
106 Chapter7
Preprocessing Directives
Predefined Macros
Predefined Macros
ANSI C provides the , , , , and predefined macros.
Table 7-1 describes the complete set of macros that are predefined to produce special
information. They may not be undefined.
NOTE
, , and are only defined in ANSI mode.
In addition to the above macros, HP C/iX provides the following predefined macros, which
can be used when cross-compiling between the HP-UX and MPE/iX operating systems:
Table 7-1. Predefined Macros
Macro Name Description
Produces the date of compilation in the form Mmm dd yyyy.
Produces the name of the file being compiled.
Produces the current source line number.
Produces the decimal constant 1, indicating that the
implementation is standard-conforming.
Produces the time of compilation in the form hh:mm:ss.