Predefined Macros [ HP C/iX Reference Manual ] MPE/iX 5.0 Documentation
HP C/iX Reference Manual
Predefined Macros
ANSI C provides the __LINE__, __FILE__, __DATE__, __TIME__, and __STDC__
predefined macros.
Table 7-1 describes the complete set of macros that are predefined to
produce special information. They may not be undefined.
Table 7-1. Predefined Macros
-------------------------------------------------------------------------------------------------------------
| | |
| Macro Name | Description |
| | |
-------------------------------------------------------------------------------------------------------------
| | |
| __DATE__ | Produces the date of compilation in the form Mmm dd yyyy. |
| | |
-------------------------------------------------------------------------------------------------------------
| | |
| __FILE__ | Produces the name of the file being compiled. |
| | |
-------------------------------------------------------------------------------------------------------------
| | |
| __LINE__ | Produces the current source line number. |
| | |
-------------------------------------------------------------------------------------------------------------
| | |
| __STDC__ | Produces the decimal constant 1, indicating that the |
| | implementation is standard-conforming. |
| | |
-------------------------------------------------------------------------------------------------------------
| | |
| __TIME__ | Produces the time of compilation in the form hh:mm:ss. |
| | |
-------------------------------------------------------------------------------------------------------------
NOTE __DATE__, __TIME__, and __STDC__ 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:
__mpexl
__hp3000s900
__hppa
MPE/iX 5.0 Documentation