Path: utzoo!mnetor!uunet!husc6!bloom-beacon!mit-eddie!rutgers!iuvax!bsu-cs!dhesi From: dhesi@bsu-cs.UUCP (Rahul Dhesi) Newsgroups: comp.lang.c Subject: Re: C Quirk?? Message-ID: <2144@bsu-cs.UUCP> Date: 18 Feb 88 01:29:53 GMT References: <1653@ssc-vax.UUCP> <804@PT.CS.CMU.EDU> <23498@hi.unm.edu> <186@ateng.UUCP> <885@PT.CS.CMU.EDU> <413@fig.bbn.com> Reply-To: dhesi@bsu-cs.UUCP (Rahul Dhesi) Organization: CS Dept, Ball St U, Muncie, Indiana Lines: 9 In article <413@fig.bbn.com> rsalz@bbn.com (Rich Salz) writes: >As a general rule, you probably don't want to use { } in #define's >as { }; is not the same as { }. Thomas Plum says this should work: #define stuff(x) do { ... } while (0) -- Rahul Dhesi UUCP: !{iuvax,pur-ee,uunet}!bsu-cs!dhesi