Prefix each parameter in a variadic macro that points to another macro
问题 Let's assume that I have these macros that are prefixed with ATTRIB_ #define ATTRIB_A "a" #define ATTRIB_B "b" #define ATTRIB_C "c" I would like to be able to use a variadic macro that unpacks each given parameter then prefixes it with ATTRIB_ to obtain the full name of an attribute macro in order to expand that macro: #define ATTRIBS(...) CONFUSED_HERE(##__VA_ARGS__) Which would be used as: const char * a = ATTRIBS(A, B, C); And the result would be equal to: const char * a = "a" "b" "c"; As