Re: CVS commit: src/gnu/dist/gcc4/libcpp
On Sun, 25 Nov 2012, Iain Hibbert wrote: Log Message: Teach gcc4.1's cpp about the magic __COUNTER__ macro, which returns a unique integer each time it is expanded. This code was written without reference to any other implementation of the same feature. out of interest, what code uses this? __COUNTER__ is used by the definition of __CTASSERT in . If __COUNTER__ is not available, it falls back to using __LINE__, but that's not necessarily unique. --apb (Alan Barrett)
Re: CVS commit: src/gnu/dist/gcc4/libcpp
On Sat, 24 Nov 2012, Alan Barrett wrote: > Module Name: src > Committed By: apb > Date: Sat Nov 24 09:07:44 UTC 2012 > > Modified Files: > src/gnu/dist/gcc4/libcpp: init.c macro.c > src/gnu/dist/gcc4/libcpp/include: cpplib.h > > Log Message: > Teach gcc4.1's cpp about the magic __COUNTER__ macro, > which returns a unique integer each time it is expanded. > This code was written without reference to any other > implementation of the same feature. out of interest, what code uses this? regards, iain