Is there a way in gcc/g++ 4.* to write a macro that expands into several lines?
The following code:
#define A X \\ Y
Expands into>
I'm pretty sure CPP, being designed for C which doesn't care for newlines, and all, can't handle this kind of work. Still you can mark wanted newlines with some special marker string and pass the result through sed or awk to get what you want.
sed
awk