From 7424be8e0b033fd6466d517d6a8e3f0fb545dd59 Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Mon, 31 Mar 2025 16:01:23 -0500 Subject: Decouple the checksodiumcb function from ALWAYS_CHECK_LIBSODIUM into its own macro --- src/shared.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/shared.h') diff --git a/src/shared.h b/src/shared.h index 7d2db27..b7fe7c3 100644 --- a/src/shared.h +++ b/src/shared.h @@ -29,6 +29,7 @@ exit(EXIT_FAILURE); /* Makes gcc happy */\ } while (0) +// Error macro that gcc will not complain about #define ERROR(status, errnum, format, ...) do {error((status), (errnum), (format)__VA_ARGS__); exit((status));} while (0) // `malloc()` with error checking. Calls `exit()` or `abort()` on error, depending on the value of `___VXGG___XALLOC_EXIT_ON_ERROR___` -- cgit v1.2.3