Hey, I am trying to #define something inside of one of my macros. Here is an example of my code:
So I want to check if A1_REGISTER is defined, and if it is not, define it as the int unused. How can I do this, as the above code does not work.Code:int unused; #define REGISTER(a) a ## _REGISTER #define REGISTER_OUT(a) \ #ifndef (REGISTER(a)) \ #define REGISTER(a) unused \ #endif // REGISTER_OUT REGISTER_OUT(A1)