|
Home --> Documentations --> PJLIB Reference
Go to the documentation of this file.
20 #ifndef __PJ_ASSERT_H__
21 #define __PJ_ASSERT_H__
29 #include <pj/compat/assert.h>
49 # define pj_assert(expr) assert(expr)
63 #if defined(PJ_ENABLE_EXTRA_CHECK) && PJ_ENABLE_EXTRA_CHECK != 0
64 # define PJ_ASSERT_RETURN(expr,retval) \
66 if (!(expr)) { pj_assert(expr); return retval; } \
69 # define PJ_ASSERT_RETURN(expr,retval) pj_assert(expr)
82 #if defined(PJ_ENABLE_EXTRA_CHECK) && PJ_ENABLE_EXTRA_CHECK != 0
83 # define PJ_ASSERT_ON_FAIL(expr,exec_on_fail) \
86 if (!(expr)) exec_on_fail; \
89 # define PJ_ASSERT_ON_FAIL(expr,exec_on_fail) pj_assert(expr)
PJLIB Open Source, high performance, small footprint, and very very portable framework
Copyright (C) 2006-2009 Teluu Inc.
|