[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/gnu/dist/gcc4/libcpp
On Sun, 25 Nov 2012, Iain Hibbert wrote:
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 <sys/cdefs.h>.
If __COUNTER__ is not available, it falls back to using __LINE__,
but that's not necessarily unique.
--apb (Alan Barrett)
Main Index |
Thread Index |