Expand macros inside quoted string [duplicate]
You can’t expand macros in strings, but you can write #define COLOR “#00ff00” f(“abc “COLOR); Remember that this concatenation is done by the C preprocessor, and is only a feature to concatenate plain strings, not variables or so.