[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [RFC] Replacement for "assert" in the libraries

From: Karl Fogel <kfogel_at_red-bean.com>
Date: Fri, 13 Jun 2008 13:07:00 -0400

Stefan Küng <tortoisesvn_at_gmail.com> writes:
>> * assert should only be used for "this can't happen" sanity checks
>
> I disagree: assert should *never* be used, unless it's enclosed in
> #ifdef _DEBUG statements.

assert() is a no-op if NDEBUG is defined. Is NDEBUG defined in our
production code? If not, shouldn't it be?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-06-13 19:07:17 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.