In C I am trying write a macro that will append __COUNTER__ to the end of a filename (before the file type). I have tried several things, and the only thing I could get to work the way I wanted was this:
Names with double underscores in them are reserved in C++
No, they're not. It's just that, by convention, internal identifiers begin with one or more underscores to prevent collision with user symbols. It would be absurd that no symbol with two successive underscores anywhere could be used. Like _____________ or __________________________.