From bf8079559cb3435731580d57b243f12a68863a05 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Fri, 19 May 2006 15:54:09 +0000 Subject: Changed PJ_ASSERT_RETURN to evaluate the expression in the pj_assert, so that the message is displayed when the program stops git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@456 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/include/pj/assert.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pjlib') diff --git a/pjlib/include/pj/assert.h b/pjlib/include/pj/assert.h index 1184ae3b..40191da7 100644 --- a/pjlib/include/pj/assert.h +++ b/pjlib/include/pj/assert.h @@ -60,7 +60,7 @@ #if defined(PJ_ENABLE_EXTRA_CHECK) && PJ_ENABLE_EXTRA_CHECK != 0 # define PJ_ASSERT_RETURN(expr,retval) \ do { \ - if (!(expr)) { pj_assert(0); return retval; } \ + if (!(expr)) { pj_assert(expr); return retval; } \ } while (0) #else # define PJ_ASSERT_RETURN(expr,retval) pj_assert(expr) -- cgit v1.2.3