aboutsummaryrefslogtreecommitdiffstats
path: root/epan/exceptions.h
diff options
context:
space:
mode:
Diffstat (limited to 'epan/exceptions.h')
-rw-r--r--epan/exceptions.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/epan/exceptions.h b/epan/exceptions.h
index e6ed6f5a96..5106852bca 100644
--- a/epan/exceptions.h
+++ b/epan/exceptions.h
@@ -372,6 +372,10 @@
except_throw(XCEPT_GROUP_WIRESHARK, (x), (y)); \
} G_STMT_END
+/* Throws a formatted message, its memory is cleared after catching it. */
+#define THROW_FORMATTED(x, ...) \
+ except_throwf(XCEPT_GROUP_WIRESHARK, (x), __VA_ARGS__)
+
#define GET_MESSAGE except_message(exc)
#define RETHROW \