summaryrefslogtreecommitdiff
path: root/src/shared.h
diff options
context:
space:
mode:
author@syxhe <https://t.me/syxhe>2025-03-31 16:01:23 -0500
committer@syxhe <https://t.me/syxhe>2025-03-31 16:01:23 -0500
commit7424be8e0b033fd6466d517d6a8e3f0fb545dd59 (patch)
treead37e1c2840b331cebb68aae430b15d9df896044 /src/shared.h
parent833cb417608eb138d3a9b99dc995c5c1aeffd1cd (diff)
Decouple the checksodiumcb function from ALWAYS_CHECK_LIBSODIUM into its own macro
Diffstat (limited to 'src/shared.h')
-rw-r--r--src/shared.h1
1 files changed, 1 insertions, 0 deletions
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 @@
29 exit(EXIT_FAILURE); /* Makes gcc happy */\ 29 exit(EXIT_FAILURE); /* Makes gcc happy */\
30} while (0) 30} while (0)
31 31
32// Error macro that gcc will not complain about
32#define ERROR(status, errnum, format, ...) do {error((status), (errnum), (format)__VA_ARGS__); exit((status));} while (0) 33#define ERROR(status, errnum, format, ...) do {error((status), (errnum), (format)__VA_ARGS__); exit((status));} while (0)
33 34
34// `malloc()` with error checking. Calls `exit()` or `abort()` on error, depending on the value of `___VXGG___XALLOC_EXIT_ON_ERROR___` 35// `malloc()` with error checking. Calls `exit()` or `abort()` on error, depending on the value of `___VXGG___XALLOC_EXIT_ON_ERROR___`