summaryrefslogtreecommitdiff
path: root/pjlib
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-06-01 09:58:57 +0000
committerBenny Prijono <bennylp@teluu.com>2007-06-01 09:58:57 +0000
commit22a0d3a9cb630bb174abef3a939cfa765839b01c (patch)
treee0344ae8907797783bbc4d9a02abf2e7f48e6450 /pjlib
parent411ab3b5701824a5e2806117049952f5ad2654aa (diff)
Implement ticket #315: ability to override pj_assert()
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1334 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib')
-rw-r--r--pjlib/include/pj/assert.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/pjlib/include/pj/assert.h b/pjlib/include/pj/assert.h
index b6f6b2e3..cea496da 100644
--- a/pjlib/include/pj/assert.h
+++ b/pjlib/include/pj/assert.h
@@ -44,7 +44,9 @@
*
* @param expr The expression to be evaluated.
*/
-#define pj_assert(expr) assert(expr)
+#ifndef pj_assert
+# define pj_assert(expr) assert(expr)
+#endif
/**