on-internet
← Community

What can the __COUNTER__ pre-processor macro be used for?

Stack Overflow ·

The __COUNTER__ symbol is provided by VC++ and GCC, and gives an increasing non-negative integral value each time it is used. I'm interested to learn whether anyone's ever used it, and whether it's something that would be worth standardising?

Comments

Sign in or sign up to comment and upvote.

No comments yet.