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

Re: assert() vs. return(error)

From: Daniel Berlin <dberlin_at_dberlin.org>
Date: 2006-02-14 16:25:50 CET

On Tue, 2006-02-14 at 15:13 +0000, Julian Foad wrote:
> Stuart Celarier wrote:
> > The rest of the C world uses the assert macro to compile assertions in
> > to the debug version, and to remove assertions in the release version.
> > Subversion always compiles with assertions in the code, including the
> > release version.
> >
> > For Subversion, assert means "conditional abort."
> >
> > I haven't seen another software project change the meaning of assert in
> > this way, so I don't think much of the existing writing on assert
> > applies to Subversion.
>
> You're over-simplifying.

He's also wrong.
GCC, for example, specifically keeps asserts on in the release builds

We do count as being part of the "rest of the C world".

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Feb 14 16:26:27 2006

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.