discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNUstep.h (was: Re: Setter Gettor method style)


From: Sir Raorn
Subject: Re: GNUstep.h (was: Re: Setter Gettor method style)
Date: Thu, 8 Aug 2002 10:30:36 +0400
User-agent: Mutt/1.4i

On Wed, Aug 07, 2002 at 12:46:49PM -0400, Tyson Whitehead wrote:
> Incidently, why do you wrap it in a do{ }while(0) statement.  Some sort 
> of macro trickery that helps in certain expansion cases?
Yes. do{}while(0) is exactly one operator and requires ';'.
I'm just not sure how ({}) will be expanded by preprocessor in
for example this code:

if(...)
  AUTORELEASE(...);
else
  ...

But it seems that I'm just a kind of paranoid ;-)

-- 
Regards, Sir Raorn.
AIF5-RIPN, AIF5-RIPE, Binec System Administrator.

Attachment: pgpT4UISEuFP6.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]