delorie.com/archives/browse.cgi | search |
Message-ID: | <3EBD2064.440BDE4E@yahoo.com> |
Date: | Sat, 10 May 2003 11:53:08 -0400 |
From: | CBFalconer <cbfalconer AT yahoo DOT com> |
Organization: | Ched Research |
X-Mailer: | Mozilla 4.75 [en] (Win98; U) |
X-Accept-Language: | en |
MIME-Version: | 1.0 |
To: | djgpp-workers AT delorie DOT com |
Subject: | Re: Reducing sbrk test on nmalloc] |
References: | <200305101158 DOT h4ABwucf027657 AT speedy DOT ludd DOT luth DOT se> |
Reply-To: | djgpp-workers AT delorie DOT com |
ams AT ludd DOT luth DOT se wrote: > According to CBFalconer: > > > at present I depend on NDEBUG being defined for production use. > > Just "define NDEBUG 1" at the start of the file. > > > don't want to have to physically revise the source to enable > > debug runs. This has been in there from day one and nobody > > said anything. > > When I tried it out I #defined NDEBUG because either you said so > or I had to (it was a long time ago). > > This must have showed up in my patch that I posted (a long time > ago) to make that code compile. The problem with that is that the sources need editing to compile the test cases. I consider that unclean. For example, I could guard that with: #ifndef DEBUG # define NDEBUG #endif if I KNOW that the DEBUG word is available. I don't. -- Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT worldnet DOT att DOT net) Available for consulting/temporary embedded and systems. <http://cbfalconer.home.att.net> USE worldnet address!
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |