diff options
Diffstat (limited to 'pjlib/include/pj/except.h')
-rw-r--r-- | pjlib/include/pj/except.h | 10 |
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 |