How do I concatenate two string macros in C?
问题 I am trying to implement VERSION macro for my program, that is to be changed under certain circumstances. macro VERSION is defined via Makefile (git info is put there) and is a string. Now I have a set of #define'd switches and I want VERSION to reflect which of them are on. This looks now like the follows (main.h): #define COMPLEX_DEPOSITION // This is switch. later in code it is used in #ifdef...#endif construction. #ifdef COMPLEX_DEPOSITION #define CD "_COMP_DEP" // this is the string I