How can I conditionally compile based on a preprocessor macro value, while ensuring that the macro is correctly spelled?
https://blogs.msdn.microsoft.com/oldnewthing/20180910-00/?p=99685 [blogs.msdn.microsoft.com]
2018-09-11 18:57
Anyway, for whatever reason, you might want to use the preprocessor’s #if directive to perform your tests. Maybe you are preprocessing something for a purpose other than compilation by a C or C++ compiler. But you’re also worried that somebody might misspell your symbol.
#define GET_NONZERO_VALUE(x) (0/(x) + (x))