You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by hw...@apache.org on 2012/02/07 22:58:07 UTC
svn commit: r1241653 - /subversion/trunk/subversion/include/svn_error.h
Author: hwright
Date: Tue Feb 7 21:58:07 2012
New Revision: 1241653
URL: http://svn.apache.org/viewvc?rev=1241653&view=rev
Log:
Revert an inadvertant part of r1241651.
Modified:
subversion/trunk/subversion/include/svn_error.h
Modified: subversion/trunk/subversion/include/svn_error.h
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/include/svn_error.h?rev=1241653&r1=1241652&r2=1241653&view=diff
==============================================================================
--- subversion/trunk/subversion/include/svn_error.h (original)
+++ subversion/trunk/subversion/include/svn_error.h Tue Feb 7 21:58:07 2012
@@ -479,8 +479,11 @@ svn_error_t *svn_error_purge_tracing(svn
*
* @since New in 1.6.
*/
-#include <assert.h>
-#define SVN_ERR_ASSERT(expr) assert((expr))
+#define SVN_ERR_ASSERT(expr) \
+ do { \
+ if (!(expr)) \
+ SVN_ERR(svn_error__malfunction(TRUE, __FILE__, __LINE__, #expr)); \
+ } while (0)
/** Similar to SVN_ERR_ASSERT(), but without the option of returning
* an error to the calling function.