Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!usc!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!gvlf3.gvl.unisys.com!burdvax!fritzson From: fritzson@PRC.Unisys.COM (Richard Fritzson) Newsgroups: comp.lang.c Subject: Macros with multi-line results? Summary: are they possible Message-ID: <16101@burdvax.PRC.Unisys.COM> Date: 10 Jan 91 20:32:00 GMT Sender: news@PRC.Unisys.COM Organization: Unisys Corporation, Paoli Research Center; Paoli, PA Lines: 30 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@prc.unisys.com Unisys - Center for Advanced Information Technology (215) 648-2972