Macros with multi-line results?
Richard Fritzson
fritzson at PRC.Unisys.COM
Fri Jan 11 07:32:00 AEST 1991
I am trying to write a macro which generates more than one line of
output. Defining a macro such as
#define foo(a,b) body \
more body \
still more
and invoking it with
foo (one, two)
produces:
body more body still more
as output from the C preprocessor. I would very much like to get
body
more body
still more
somehow. Is this possible?
I know that it shouldn't matter, but in this case, it does.
I would appreciate anyone's help with this. Thanks.
Rich Fritzson fritzson at prc.unisys.com
Unisys - Center for Advanced Information Technology (215) 648-2972
More information about the Comp.lang.c
mailing list