Re: NS_INLINE and obj = nil;?
Re: NS_INLINE and obj = nil;?
- Subject: Re: NS_INLINE and obj = nil;?
- From: Andy Lee <email@hidden>
- Date: Mon, 04 Jan 2010 05:16:17 -0500
On Jan 3, 2010, at 5:26 PM, Scott Ribe wrote:
>> Easily fixed:
>>
>> #define GDRelease(x) [(x) release], (x) = nil, (void)0
>
> Not really a good fix; compiler error is preferable to tweaking your macro
> to allow compilation of nonsense ;-)
Actually this causes a compiler error if you try "if (GDRelease(...))".
--Andy
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden