Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site watdaisy.UUCP Path: utzoo!watmath!watdaisy!ndiamond From: ndiamond@watdaisy.UUCP (Norman Diamond) Newsgroups: net.lang.c Subject: Re: C-Debug package ... (a la "context-independent macros") Message-ID: <6934@watdaisy.UUCP> Date: Thu, 7-Feb-85 22:10:37 EST Article-I.D.: watdaisy.6934 Posted: Thu Feb 7 22:10:37 1985 Date-Received: Fri, 8-Feb-85 01:12:15 EST References: <1885@wateng.UUCP> <1089@hcrvx1.UUCP> <33@daisy.UUCP> <1097@hcrvx1.UUCP> <1924@wateng.UUCP> <802@sjuvax.UUCP> Organization: U of Waterloo, Ontario Lines: 37 > > > # define macro(args)\ > > > if (1) {\ > > > /* macro body */\ > > > }\ > > > else > > > -- P. Lee > > > > macro( args ) > > next_statment; > > fails in this macro, and is hard to find. > > -- K. Szabo > > If, hoever, one writes > else; > instead of > else > the problem goes away. > -- J. Shapiro Then: if (condition) macro( args ); else other_stuff; gives a syntax error! (OK it's easier to find, but then suppose the macro changes to a function. OK, it's still easier to find. BUT IT'S STILL OBNOXIOUS!) -- Norman Diamond UUCP: {decvax|utzoo|ihnp4|allegra|clyde}!watmath!watdaisy!ndiamond CSNET: ndiamond%watdaisy@waterloo.csnet ARPA: ndiamond%watdaisy%waterloo.csnet@csnet-relay.arpa "Opinions are those of the keyboard, and do not reflect on me or higher-ups."