How do I show the value of a #define at compile-time?
I know that this is a long time after the original query, but this may still be useful. This can be done in GCC using the stringify operator “#”, but it requires two stages. #define XSTR(x) STR(x) #define STR(x) #x The value of a macro can then be displayed with: #pragma message “The value of … Read more