Am Dienstag, 10. Juni 2008 08:09:19 schrieb Per Inge Mathisen: > On Tue, Jun 10, 2008 at 12:23 AM, Dennis Schridde <[EMAIL PROTECTED]> wrote: > > We are: > > - Defining DEBUG on debug builds and not otherwise. > > - Defining NDEBUG to shutup asserts. > > It also seems inconsistent to sometimes decide depending on DEBUG and > > sometimes depending on NDEBUG, for the same case (as happened here). > > To prevent such confusion in the first place, I would suggest not using > > NDEBUG if you mean !DEBUG (or generally not using NDEBUG unless there is > > a good reason). > > Shutting up asserts is not a good reason? Release builds with asserts > is not a good idea, IMHO. Misunderstood, I am.
In the code you shall not use NDEBUG. What your libc does is of little concern to me. ;) Or put differently: Define NDEBUG if you want (or not, if you are on Mac), but don't detect non-debug builds based on NDEBUG, but use !DEBUG instead. --Dennis
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Warzone-dev mailing list [email protected] https://mail.gna.org/listinfo/warzone-dev
