Specifications

CAVR-4
228
Predefined symbols
AVR® IAR C/C++ Compiler
Reference Guide
SUMMARY OF PREDEFINED SYMBOLS
The following table summarizes the predefined symbols:
Predefined symbol Identifies
__ALIGNOF__() Accesses the alignment of an object
__BASE_FILE__ Identifies the name of the file being compiled. If the file is
a header file, the name of the file that includes the header
file is identified.
__CORE__ Identifies the processor variant in use
__CPU__ Identifies the processor variant in use
__cplusplus Determines whether the compiler runs in C++ mode
*
__DATE__ Determines the date of compilation
*
__derivative__ Corresponds to the processor specified with the --cpu
compiler option
__embedded_cplusplus Determines whether the compiler runs in C++ mode
*
__FILE__ Identifies the name of the file being compiled
*
__func__ Expands into a string with the function name as context
__FUNCTION__ Expands into a string with the function name as context
__HAS_EEPROM__ Determines whether there is an EEPROM available
__IAR_SYSTEMS_ICC__ Identifies the IAR compiler platform
__ICCAVR__ Identifies the AVR IAR C/C++ Compiler
__LINE__ Determines the current source line number
*
__MEMORY_MODEL__ Identifies the memory model in use
NDEBUG Determines whether asserts shall be included or not in
the built application
_Pragma() Can be used in preprocessor defines and has the
equivalent effect as the pragma directive
__PRETTY_FUNCTION__ Expands into a string with the function name, including
parameter types and return type, as context
__STDC__ Identifies ISO/ANSI Standard C
*
__STDC_VERSION__ Identifies the version of ISO/ANSI Standard C in use
*
__TID__ Identifies the target processor of the IAR compiler in use
__TIME__ Determines the time of compilation
*
__VER__ Identifies the version number of the IAR compiler in use
__VERSION_1_CALLS__ Identifies the calling convention in use
Table 70: Predefined symbols summary