context-independent macros
Chris Torek
chris at umcp-cs.UUCP
Sun Feb 3 08:45:46 AEST 1985
> How about:
> #define macro(args)\
> (Statement1 ,\
> Statement2 ,\
> ...
> Statement3)
I use this whenever possible, but it doesn't always suffice. When it
doesn't, I've usually used
if (1) { stuff to do } else
though
do { stuff to do } while (0)
might be better.
--
(This line accidently left nonblank.)
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 4251)
UUCP: {seismo,allegra,brl-bmd}!umcp-cs!chris
CSNet: chris at umcp-cs ARPA: chris at maryland
More information about the Comp.lang.c
mailing list