• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NS_INLINE and obj = nil;?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NS_INLINE and obj = nil;?


  • Subject: Re: NS_INLINE and obj = nil;?
  • From: Alexander Spohr <email@hidden>
  • Date: Sat, 2 Jan 2010 15:29:25 +0100

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 (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

  • Follow-Ups:
    • Re: NS_INLINE and obj = nil;?
      • From: Clark Cox <email@hidden>
    • Re: NS_INLINE and obj = nil;?
      • From: David Duncan <email@hidden>
References: 
 >NS_INLINE and obj = nil;? (From: aaron smith <email@hidden>)
 >Re: NS_INLINE and obj = nil;? (From: "Stephen J. Butler" <email@hidden>)

  • Prev by Date: Re: Drawing on top of QTCaptureView
  • Next by Date: Re: Setting the Line Height/ Line Spacing in an NSTextView.
  • Previous by thread: Re: NS_INLINE and obj = nil;?
  • Next by thread: Re: NS_INLINE and obj = nil;?
  • Index(es):
    • Date
    • Thread