Changeset 161


Ignore:
Timestamp:
Feb 8, 2006 10:45:21 PM (19 years ago)
Author:
bennylp
Message:

Changed PJ_ASSERT_RETURN implementation, to prevent expr from being evaluated twice

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/assert.h

    r127 r161  
    6161#   define PJ_ASSERT_RETURN(expr,retval)    \ 
    6262            do { \ 
    63                 pj_assert(expr); \ 
    64                 if (!(expr)) return retval; \ 
     63                if (!(expr)) { pj_assert(0); return retval; } \ 
    6564            } while (0) 
    6665#else 
Note: See TracChangeset for help on using the changeset viewer.