• 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: "Raglan T. Tiger" <email@hidden>
  • Date: Tue, 23 Jun 2015 17:35:26 -0600

-rags



> On Jun 23, 2015, at 1:59 PM, Greg Parker <email@hidden> wrote:
>
>
>> On Jun 23, 2015, at 10:14 AM, Raglan T. Tiger <email@hidden> wrote:
>>
>> My cocoa app links to a number of C++ BSD Static libraries. These libraries are built in Release configuration.  They have Asset Macros in them.
>>
>> The Asserts are fired in the release builds.  My Windows programmer tele that Asserts do not get compiled into release code on windows.
>>
>> What are my options / setting for not compiling asserts into release builds?
>
> First question: how are the asserts spelled? Different assert calls have different configuration. For example, the switch to disable assert() has no effect on NSAssert().
>
>
>> Are these set in the Library project or the App project that links to them?
>
> Assert behavior is usually set when the library is compiled. Sometimes the library will have a runtime variable that affects assert behavior.
>

The Asserts are in the static libraries and are C++ and writen like:

    assert( 0.0 <= u );

I have added NDEBUG=1 in the project release configurationpre-processor macro definitions per results here.

Thanks all.

-rags
_______________________________________________

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: C Assert in BSD Static Library
      • From: Scott Ribe <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>)

  • Prev by Date: Re: C Assert in BSD Static Library
  • Next by Date: Re: iOS - Proper way to check UIEvent or UInternalEvent
  • Previous by thread: Re: C Assert in BSD Static Library
  • Next by thread: Re: C Assert in BSD Static Library
  • Index(es):
    • Date
    • Thread