__COUNTER__

Preprocessor macro that expands to an integer.

Syntax
__COUNTER__
  
Remarks

The compiler defines this macro as an integer that has an initial value of 0 incrementing by 1 every time the macro is used in the translation unit.

The value of this macro is stored in a precompiled header and is restored when the precompiled header is used by a translation unit.

Related information
__ASSEMBLER__
__COMPILER__
__TARGETARCH__
__VERSION_NUM__
__VERSION__
__cplusplus
__CWBUILD__
__CWCC__
__DATE__
__embedded_cplusplus
__FILE__
__func__
__FUNCTION__
__ide_target()
__LINE__
__MWERKS__
__optlevel
__PRETTY_FUNCTION__
__profile__
__STDC__
__TIME__