OSSP CVS Repository

ossp - Difference in ossp-pkg/ex/ex.h versions 1.6 and 1.7
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/ex/ex.h 1.6 -> 1.7

--- ex.h 2002/01/26 22:35:02     1.6
+++ ex.h 2002/01/26 22:42:46     1.7
@@ -190,8 +190,12 @@
     for (__ex_ctx->ctx_disabled = 1; \
          __ex_ctx->ctx_disabled == 1; \
          __ex_ctx->ctx_disabled = 0)
-#define ex_shielded \
-        (__ex_ctx->ctx_disabled)
+
+/* exception handling tests */
+#define ex_catching \
+    (__ex_ctx->ctx_mctx != NULL)
+#define ex_shielding \
+    (__ex_ctx->ctx_disabled)
 
 /* optional namespace mapping */
 #if defined(__EX_NS_USE_UCCXX__)
@@ -200,14 +204,12 @@
 #define Throw    ex_throw
 #define Rethrow  ex_rethrow
 #define Shield   ex_shield
-#define Shielded ex_shielded
 #elif defined(__EX_NS_USE_CXX__) || (!defined(__cplusplus) && !defined(__EX_NS_USE_CUSTOM__))
 #define try      ex_try
 #define catch    ex_catch
 #define throw    ex_throw
 #define rethrow  ex_rethrow
 #define shield   ex_shield
-#define shielded ex_shielded
 #endif
 
 #endif /* __EX_H__ */

CVSTrac 2.0.1