Closed Predelnik closed 5 years ago
Right, unused macro definitions get removed, but sometimes it's undesirable. There is already parameter keep_macros
that avoids collapsing this:
#ifdef _WIN32
//windows specific
#else
//other
#endif
into
// windows specific
I'm going to make it work for your scenario too.
This will be fixed in the next release.
After a bit of playing around I've found the following workaround (just to use macro in next line):
While workaround is not actually that bad, it may still be unobvious. So probably it's at least advisable to add it to readme or maybe fix it other way if it is possible.