__COUNTER__

Preprocessor macro that expands to an integer.

Syntax
  __COUNTER__
  
  
Remarks

The compiler defines this macro as an integer that has an intial 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.