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 whether anyone's ever used it, and whether it's something that would be worth standardising?