Re:Some obscure C features
by mrgriffin on Friday January 26, 2018 @03:38AM
(#16237776)
That's true, and in the event that you're actually using __COUNTER__ for something you could build something similar out of #include with a header that increments an internal number.
And then change each invocation of ELEMENT to have a leading #include "COUNTER".
Note that if you take this approach then (as far as I know) you're actually writing standard C!
[ Parent
| on HN ]
There are no comments on this comment yet.