The __COUNTER__ symbol is provided by VC++ and GCC, and gives an increasing non-negative integral value each time it is used.
__COUNTER__
I\'m interested to learn w
I've used it in a compile-time assertion macro to have the macro create a name for a typedef that will be unique. See
if you want the gory details.