Date: Mon, 9 Oct 2000 16:05:58 -0700 (PDT) From: Jeff Foster <jfoster@EECS.Berkeley.EDU> Subject: Re: ick, ick -- grossness in linux kernel Message-ID: <Pine.LNX.4.21.0010091604060.6351-100000@lagaffe.cs.berkeley.edu> On Mon, 9 Oct 2000, Ben Liblit wrote: > Here's another approach that also doesn't work: > > #define AB(x) { a(x); b(x); } > > if (p) > AB(z); > else /* oops! extra semicolon before "else" */ > foo(); Ah...so they weren't targeting gcc. If they were, they could do #define AB(x) ({a(x); b(x);}) which I think should always work (maybe with a few extra ()'s around it or something). Jeff
This archive was generated by hypermail 2b30 : 11/04/02 PST