I'd like to have a macro to call which increments an ID. This ID is a constant, being incremented each time it is called.
Obviously, the following does not work:
#define ID 0 // initially
.. then
#define ID ID+1 // whenever I need a new ID generated.
Is there a trick, potentially with multiple...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.