Using Macros
GALLOWAY
gg10 at prism.gatech.EDU
Wed Aug 8 20:48:12 AEST 1990
In article <14404 at diamond.BBN.COM>, mlandau at 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 at 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 at rism.gatech.edu
More information about the Comp.lang.c
mailing list