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 20:40:59 +0100 (BST)
Daniel Shahaf wrote:
> Julian Foad wrote:
Hi Daniel.
In places where there will be a seg-fault if the condition is false, the assertion statement doesn't prevent abnormal program termination, it only makes it easier to see what went wrong.
In places where the processing will continue with wrong data or wrong behaviour if the condition is false, the assertion statement doesn't prevent the program from going wrong, it just changes the failure mode to a more obvious one.
People who don't care about the failure mode in such cases may wish to turn off the checks.
- 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.