aboutsummaryrefslogtreecommitdiffstats
path: root/epan/exceptions.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-10-23 04:59:46 +0000
committerGuy Harris <guy@alum.mit.edu>2003-10-23 04:59:46 +0000
commitb60dec2b52d59da82ef0987c4a8723a3963ed20a (patch)
tree6a778f0988ba95beba6e553930b3ba72e883c01f /epan/exceptions.h
parent1052d5a2b5c43f163379f37477aec90b7beb4e55 (diff)
Add a new EXCEPT_CODE macro to get the exception code for the current
exception, for use in CATCH_ALL handlers, so you can catch all exceptions and then pass the exception code on to a routine that handles different exceptions differently. svn path=/trunk/; revision=8757
Diffstat (limited to 'epan/exceptions.h')
-rw-r--r--epan/exceptions.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/exceptions.h b/epan/exceptions.h
index 54932dd2f5..a16b892565 100644
--- a/epan/exceptions.h
+++ b/epan/exceptions.h
@@ -134,6 +134,8 @@
#define RETHROW except_rethrow(exc)
+#define EXCEPT_CODE except_code(exc)
+
/* Register cleanup functions in case an exception is thrown and not caught.
* From the Kazlib documentation, with modifications for use with the
* Ethereal-specific macros: