• 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: ENABLE_NS_ASSERTIONS?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ENABLE_NS_ASSERTIONS?


  • Subject: Re: ENABLE_NS_ASSERTIONS?
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 18 Oct 2013 18:54:06 -0700


On Oct 18, 2013, at 4:28 PM, Rick Mann <email@hidden> wrote:

I'm trying to comment out code that becomes unnecessary when an NSAssert is elided. ...
What should I use? There's also NS_BLOCK_ASSERTIONS.

If you look at the definitions of the NSAssert macros in NSException.h, they’re all enabled based on 
#if !defined(NS_BLOCK_ASSERTIONS)
so I think that’s the symbol you should test against.

—Jens
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: ENABLE_NS_ASSERTIONS?
  • Next by Date: Re: ENABLE_NS_ASSERTIONS?
  • Previous by thread: Re: ENABLE_NS_ASSERTIONS?
  • Next by thread: Generating both signed and unsigned bundles from a build
  • Index(es):
    • Date
    • Thread