httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <>
Subject Re: assert() without -DNDEBUG
Date Thu, 10 Jul 1997 02:27:16 GMT
On Wed, 9 Jul 1997, Nathan J Kurz wrote:

> > I'm not sure what you are talking about WRT NDEBUG.  It is in regex
> > becaues it is in regex.
> I should have given a better explanation of the problem I was having.
> At least on Solaris and Linux, assert() is implemented as a macro,
> evaluates to 0 if NDEBUG is defined by the preprocessor.  I have
> outside code that I need to add to Apache, and for that I need to make
> sure that NDEBUG is defined.  I was worried that Apache was relying on
> the presence of the assert's, and would encounter problems if the
> preprocessor removed them.

Yes, that is a problem.  A couple of places use them for security checks
on conditions that should never ever happen unless someone is trying to be
nasty.  No, it is not a bug. 

View raw message