This one bit me today
Brian Matthews
6sigma at polari.UUCP
Wed Oct 11 08:07:28 AEST 1989
In article <1243 at virtech.UUCP> cpcahil at virtech.UUCP (Conor P. Cahill) writes:
|In article <1067 at polari.UUCP>, 6sigma at polari.UUCP (Brian Matthews) writes:
|> That's why anyone who knows what they're doing will parenthesize each
|> argument in the expansion of the macro and use liberal whitespace, thusly:
|> #define xavg(m) (sum + 3) / (m)
|
|And they will also parenthesize the entire expression:
|
|#define xavg(m) ((sum + 3) / (m))
Arrgh. Absolutely. Sorry for being stupid in public...
More information about the Comp.lang.c
mailing list