summaryrefslogtreecommitdiff
path: root/epan/exceptions.h
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2012-12-04 14:37:21 +0000
committerBill Meier <wmeier@newsguy.com>2012-12-04 14:37:21 +0000
commit357ea3fc88d43fb5a9c373bbcf1ad73b79f718e2 (patch)
treeb8fc6c7b9b497986ff0198ec2e1649629f13ed74 /epan/exceptions.h
parent1c25482ebc25c1ebb3625734994ded22058e7faa (diff)
downloadwireshark-357ea3fc88d43fb5a9c373bbcf1ad73b79f718e2.tar.gz
Define variants of CLEANUP_PUSH & etc to allow nested use w/o "shadowing" variables.
svn path=/trunk/; revision=46366
Diffstat (limited to 'epan/exceptions.h')
-rw-r--r--epan/exceptions.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/epan/exceptions.h b/epan/exceptions.h
index 62a631992d..92b91ca29f 100644
--- a/epan/exceptions.h
+++ b/epan/exceptions.h
@@ -341,4 +341,11 @@
#define CLEANUP_POP except_cleanup_pop(0)
#define CLEANUP_CALL_AND_POP except_cleanup_pop(1)
+/* Variants to allow nesting of except_cleanup_push w/o "shadowing" variables */
+#define CLEANUP_PUSH_PFX(pfx,f,a) except_cleanup_push_pfx(pfx,(f),(a))
+#define CLEANUP_POP_PFX(pfx) except_cleanup_pop_pfx(pfx,0)
+#define CLEANUP_CALL_AND_POP_PFX(pfx) except_cleanup_pop_pfx(pfx,1)
+
+
+
#endif /* __EXCEPTIONS_H__ */