• 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: Test for debug vs release
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Test for debug vs release


  • Subject: Re: Test for debug vs release
  • From: Greg Parker <email@hidden>
  • Date: Sun, 21 Mar 2010 22:24:07 -0700

On Mar 21, 2010, at 11:10 AM, Clark Cox wrote:
> The presence or absence of NDEBUG is not defined by the C standard
> *however* the behaviour of the assert macro, when *you* define NDEBUG,
> *is* specified:
>
> "If NDEBUG is defined as a macro name at the point in the source file
> where <assert.h> is included, the assert macro is defined simply as
> #define assert(ignore) ((void)0)"

Defining NDEBUG for non-debug builds is traditional, but Xcode doesn't do it by default. If you want to follow tradition, add NDEBUG to the Preprocessor Macros of your Release build.


--
Greg Parker     email@hidden     Runtime Wrangler


_______________________________________________

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

References: 
 >Test for debug vs release (From: BareFeet <email@hidden>)
 >Re: Test for debug vs release (From: Gideon King <email@hidden>)
 >Re: Test for debug vs release (From: Jerry Krinock <email@hidden>)
 >Re: Test for debug vs release (From: Don Quixote de la Mancha <email@hidden>)
 >Re: Test for debug vs release (From: Clark Cox <email@hidden>)

  • Prev by Date: Re: ATTR_CMN_CHGTIME
  • Next by Date: Re: iPhone search of my app's data?
  • Previous by thread: Re: Test for debug vs release
  • Next by thread: NSPredicate to exclude specific elements??
  • Index(es):
    • Date
    • Thread