summaryrefslogtreecommitdiff
path: root/pjlib/include/pj/except.h
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-05-12 15:03:23 +0000
committerBenny Prijono <bennylp@teluu.com>2007-05-12 15:03:23 +0000
commitfd5aade84080ce74df1622958ea2c56c3e827703 (patch)
treeba9d237790fd514955f4e716afc162b7d7091d31 /pjlib/include/pj/except.h
parent3727cae28c3f725ff6f909955718523737a597fa (diff)
Symbian fixes to compile on GCCE (nested callbacks etc)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1269 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/include/pj/except.h')
-rw-r--r--pjlib/include/pj/except.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/pjlib/include/pj/except.h b/pjlib/include/pj/except.h
index 610f4626..509b01be 100644
--- a/pjlib/include/pj/except.h
+++ b/pjlib/include/pj/except.h
@@ -26,6 +26,7 @@
#include <pj/types.h>
#include <pj/compat/setjmp.h>
+#include <pj/log.h>
PJ_BEGIN_DECL
@@ -265,6 +266,15 @@ public:
while (0)
#define PJ_GET_EXCEPTION() pj_excp_.code_
+#else
+
+#define PJ_USE_EXCEPTION
+#define PJ_TRY
+#define PJ_CATCH_ANY if (0)
+#define PJ_END
+#define PJ_THROW(x_id) do { PJ_LOG(1,("PJ_THROW"," error code = %d",x_id)); } while (0)
+#define PJ_GET_EXCEPTION() 0
+
#endif /* __cplusplus */
#else