I need a macro that extends over several lines of code. For instance:
#define foo(...)
foo(something, something_else, ...)
...
Must be converted to:
something
something_else
...
And not in:
something something_else ...
Also, if you are wondering why I need such a thing. I need to generate such code, a new line is part of the syntax of the built-in assembly.
_asm
{
mov eax, 3
div 5
}
I am interested in any form of achieving this goal, so all suggestions are welcome.
Just an idea after reading this answer . Is it possible to have a macro for a new line and call foo(something, NL, something_else, NL, ...)?
I am also interested in the variational version, but a simpler version may also help.
source
share