Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uflorida!mephisto!prism!gg10 From: gg10@prism.gatech.EDU (GALLOWAY) Newsgroups: comp.lang.c Subject: Re: Using Macros Summary: why doesn't this work? Message-ID: <12318@hydra.gatech.EDU> Date: 8 Aug 90 10:48:12 GMT References: <14339@shlump.nac.dec.com> <14404@diamond.BBN.COM> Organization: Georgia Institute of Technology Lines: 19 In article <14404@diamond.BBN.COM>, mlandau@bbn.com (Matthew Landau) writes: > ... > #define FOO(bar, baz) do { func1(bar); func2(baz); } while (0) > ... > Of course lint and Saber will complain bitterly, but you can shut ... > -- > Matt Landau Oblivion gallops closer, > mlandau@bbn.com favoring the spur, sparing the rein. Why doesn't this work? #define A_MACRO(bar, baz) func1(bar), func2(baz) I have been using syntax like this for awhile, is this wrong or unportable? Also, what is Saber? Greg Galloway gg10@rism.gatech.edu