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

Re: abort or verify?

From: Mark Phippard <MarkP_at_softlanding.com>
Date: 2004-11-11 21:31:59 CET

Branko Èibej <brane@xbc.nu> wrote on 11/11/2004 03:28:53 PM:

> That unfortunately won't do what you want, because assert is always a
> macro that somehow prints out the expression that failed. So the best
> way is probably this:
>
> #ifndef NDEBUG
> #define SVN_VERIFY(x) assert(x)
> #else
> #define SVN_VERIFY(x) if ((x)); else abort()
> #endif

Is there any reason we couldn't just #undefine NDEBUG in our source?

Mark

_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. by IBM Email Security Management Services powered by MessageLabs.
_____________________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Nov 11 21:32:23 2004

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.