From 1a590a5859207d5adb4f7a72d6b9ed1ab301e8c4 Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Sun, 26 Jan 2025 23:24:58 -0600 Subject: Reimplement dirname() as xdirname() --- src/shared.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/shared.h') diff --git a/src/shared.h b/src/shared.h index 3602a4e..9cdbd33 100644 --- a/src/shared.h +++ b/src/shared.h @@ -11,6 +11,10 @@ // type functions will ALWAYS 'abort', doing otherwise defeats the purpose of the function type #define ___VXGG___XALLOC_EXIT_ON_ERROR___ 1 +// Defines whether vxgg functions that can error print out a short warning of the error when one is encountered. +// `___VXGG___VERBOSE_ERRORS___ > 0` will print diagnostic error messages, and will do nothing otherwise +#define ___VXGG___VERBOSE_ERRORS___ 1 + // `calloc()` with error checking. Calls `error()` or `abort()` on error, depending on the value of `___VXGG___XALLOC_EXIT_ON_ERROR___` void* xcalloc(size_t nmemb, size_t size); -- cgit v1.2.3