diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-05-19 15:54:09 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-05-19 15:54:09 +0000 |
commit | bf8079559cb3435731580d57b243f12a68863a05 (patch) | |
tree | cd3647e77b250e6fab686b2e6f915e4e197c03ab | |
parent | 202d1a5c4b12735e9f7811c83a0e9494971b19fc (diff) |
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
-rw-r--r-- | pjlib/include/pj/assert.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) |