From c8ab26e9f5aa398a208fcac3d8d11335f6c72632 Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Mon, 10 Nov 2025 16:09:10 -0600 Subject: Touchup --- src/shared.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/shared.c') diff --git a/src/shared.c b/src/shared.c index 2397bd6..b6d27e4 100644 --- a/src/shared.c +++ b/src/shared.c @@ -28,13 +28,10 @@ #define ___VXGG___VERBOSE_ERRORS___ 1 //! Macro to exit on an alloc error instead of doing the terrible nested if statement that was being used previously -#define XALLOC_EXIT(msg, ...) do {\ - if(!___VXGG___VXALLOC_EXIT_ON_ERROR___)\ - abort();\ - if(!___VXGG___VERBOSE_ERRORS___)\ - exit(EXIT_FAILURE);\ - error(EXIT_FAILURE, errno, (msg)__VA_ARGS__);\ - exit(EXIT_FAILURE); /* Makes gcc happy */\ +#define XALLOC_EXIT(msg, ...) do { \ + if(___VXGG___VERBOSE_ERRORS___) error(EXIT_FAILURE, errno, (msg)__VA_ARGS__); \ + if(___VXGG___VXALLOC_EXIT_ON_ERROR___) exit(EXIT_FAILURE); \ + abort(); \ } while (0) //! Error macro that gcc will not complain about -- cgit v1.2.3