Am 02.01.2010 um 05:09 schrieb Stephen J. Butler: > If you really wanted a macro, it would look like this: > > #define GDRelease(x) do { [(x) release]; (x) = nil; } while (0)
What is the do while good for? Would this not work as well: #define GDRelease(x) { [(x) release]; (x) = nil; } Or even this: #define GDRelease(x) [(x) release], (x) = nil; atze _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com