From 98ef6a8510d555148528e4fffb6cfa587dbd4c46 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Sat, 7 Aug 2021 15:10:44 +0100 Subject: always va_end even when an error occurs --- common.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common.h') diff --git a/common.h b/common.h index f22f588..abef5af 100644 --- a/common.h +++ b/common.h @@ -12,6 +12,9 @@ #define BITMASK(n) (UINTMAX_MAX >> (sizeof (uintmax_t) * CHAR_BIT - n)) +#define SET_AND_GOTO(what, to, where) \ + do { (what) = (to); goto where; } while (0); + #ifndef PRIuSIZE #ifdef _WIN32 #ifdef _WIN64 -- cgit v1.2.3-54-g00ecf