
8 Feb
2009
8 Feb
'09
12:50 a.m.
At 5:33 PM +0300 2/7/09, Andrey Semashev wrote:
It's __COUNTER__, unfolds into an integer. It gets incremented every time it gets unfolded.
FWIW, this feature was also recently added to gcc: http://gcc.gnu.org/gcc-4.3/changes.html A new predefined macro __COUNTER__ has been added. It expands to sequential integral values starting from 0. In conjunction with the ## operator, this provides a convenient means to generate unique identifiers.