• 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: C Assert in BSD Static Library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C Assert in BSD Static Library


  • Subject: Re: C Assert in BSD Static Library
  • From: "Clark S. Cox III" <email@hidden>
  • Date: Sun, 28 Jun 2015 17:14:43 -0700

> On Jun 23, 2015, at 17:24, Raglan T. Tiger <email@hidden> wrote:
>
>> On Jun 23, 2015, at 5:48 PM, Scott Ribe <email@hidden> wrote:
>>
>> Just to be clear, =1 is actually not necessary.
>
>
> Yes.  But of course Xcode puts DEBUG=1 in the debug configuration.
>
> Just doing belt and suspenders.
>
> What if the compiler did
>
> #ifdef NDEBUG
>
> if ( NDEBUG == 1 ) <turn off stuff >
>
> #endif

If the compiler is doing that, then it is simply wrong. If NDEBUG is defined at all, then assert is disabled. This is guaranteed by the C standard.

--
Clark S. Cox III
email@hidden
_______________________________________________

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: 
 >C Assert in BSD Static Library (From: "Raglan T. Tiger" <email@hidden>)
 >Re: C Assert in BSD Static Library (From: Greg Parker <email@hidden>)
 >Re: C Assert in BSD Static Library (From: "Raglan T. Tiger" <email@hidden>)
 >Re: C Assert in BSD Static Library (From: Scott Ribe <email@hidden>)
 >Re: C Assert in BSD Static Library (From: "Raglan T. Tiger" <email@hidden>)

  • Prev by Date: Re: Communicating with a child process in app sandbox
  • Next by Date: Open program from custom schema link
  • Previous by thread: Re: C Assert in BSD Static Library
  • Next by thread: Why do so many iOS apps have such poor quality?
  • Index(es):
    • Date
    • Thread