From 357ea3fc88d43fb5a9c373bbcf1ad73b79f718e2 Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Tue, 4 Dec 2012 14:37:21 +0000 Subject: Define variants of CLEANUP_PUSH & etc to allow nested use w/o "shadowing" variables. svn path=/trunk/; revision=46366 --- epan/exceptions.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'epan/exceptions.h') 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__ */ -- cgit v1.2.1