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

Re: NDEBUG suddenly defined???


  • Subject: Re: NDEBUG suddenly defined???
  • From: Jeffrey Walton <email@hidden>
  • Date: Tue, 02 Jul 2013 21:02:21 -0400

On Tue, Jul 2, 2013 at 8:50 PM, Scott Ribe <email@hidden> wrote:
>
> On Jul 2, 2013, at 3:47 PM, Fritz Anderson wrote:
>> ...
>>
>> Do a global find for NDEBUG, setting the search to include frameworks. It's possible that you're including a header that defines it.
>
> Global find was the answer. A code mod I made indirectly brought in a 3rd-party header which contained this gem:
>
> #ifndef NDEBUG
> #define NDEBUG 1
> #endif
>
> Which they "have to" do, because later in the code they have:
>
> if (!NDEBUG)
>         dosomedebugbuildstuff();
>
> That's right, notice the lack of a "#". So, basically, they have constructed their header such that assert can never be used! Somebody needs a lesson the proper use of NDEBUG.
>
It looks like Java or C# code...

Third party libraries are now an OWASP item. They have to be audited
just like your app - no more "trust me, its OK". -Wall -Wextra
-Wconversion will likely bring lots of pain and misery.

Jeff
 _______________________________________________
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


References: 
 >NDEBUG suddenly defined??? (From: Scott Ribe <email@hidden>)
 >Re: NDEBUG suddenly defined??? (From: Fritz Anderson <email@hidden>)
 >Re: NDEBUG suddenly defined??? (From: Scott Ribe <email@hidden>)

  • Prev by Date: Re: NDEBUG suddenly defined???
  • Next by Date: Re: Sandboxing of an Apple Script Studio application
  • Previous by thread: Re: NDEBUG suddenly defined???
  • Next by thread: Link fails for test but not app build
  • Index(es):
    • Date
    • Thread