Re: Always use SVN_ERR_ASSERT [was: svn commit: r1329234 - in /subversion/trunk: ./ subversion/libsvn_delta/compat.c]
From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Mon, 23 Apr 2012 17:18:22 +0100 (BST)
I (Julian Foad) wrote:
> There isn't currently an easy build switch (such as NDEBUG) to disable
We can also introduce run-time control of whether the conditions are evaluated: test a global 'assertions enabled?' variable or function before evaluating the condition. For example:
Index: subversion/include/svn_error.h
- Julian
|
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.