C166 User's Guide

Predefined Macros

The C166 Compiler provides you with predefined constants to use in preprocessor directives and C code for more portable programs. The following table lists and describes each one.

ConstantDescription
__C166__Version number of the compiler (for example, 501 for version 5.01).
__DATE__Date when the compilation was started in ANSI format (month dd yyyy).
__DATE2__Date when the compilation was started in short form (mm/dd/yy).
__DUS__Defined to 1 to indicate that the DYNAMICUSRSTK directive is active.
__FILE__Name of the file being compiled.
__FLOAT64__Defined to 1 to indicate that the FLOAT64 directive is active.
__LINE__Current line number in the file being compiled.
__MAC__Defined to 1 to indicate that the MAC directive is active.
__MOD167__Defined to 1 to indicate that the MOD167 directive is active.
__MODEL__Memory model selected:
__MODV2__Defined to 1 to indicate that the MODV2 directive is active.
__SAVEMAC__Defined to 1 to indicate that the SAVEMAC directive is active.
__STDC__Defined to 1 to indicate full conformance with the ANSI C Standard.
__TIME__Time when the compilation was started.

Note

  • There are two (2) leading and trailing underscore characters ('_') used for the predefined constants.