diff options
| author | @syxhe <https://t.me/syxhe> | 2025-01-26 23:24:58 -0600 |
|---|---|---|
| committer | @syxhe <https://t.me/syxhe> | 2025-01-26 23:24:58 -0600 |
| commit | 1a590a5859207d5adb4f7a72d6b9ed1ab301e8c4 (patch) | |
| tree | 0cc0da78ac30f9807615a22bcf3e33193e06a15d /src/shared.h | |
| parent | e3916f57bd8c1176ade570c1125d4eacd4d6362d (diff) | |
Reimplement dirname() as xdirname()
Diffstat (limited to 'src/shared.h')
| -rw-r--r-- | src/shared.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 @@ | |||
| 11 | // type functions will ALWAYS 'abort', doing otherwise defeats the purpose of the function type | 11 | // type functions will ALWAYS 'abort', doing otherwise defeats the purpose of the function type |
| 12 | #define ___VXGG___XALLOC_EXIT_ON_ERROR___ 1 | 12 | #define ___VXGG___XALLOC_EXIT_ON_ERROR___ 1 |
| 13 | 13 | ||
| 14 | // Defines whether vxgg functions that can error print out a short warning of the error when one is encountered. | ||
| 15 | // `___VXGG___VERBOSE_ERRORS___ > 0` will print diagnostic error messages, and will do nothing otherwise | ||
| 16 | #define ___VXGG___VERBOSE_ERRORS___ 1 | ||
| 17 | |||
| 14 | // `calloc()` with error checking. Calls `error()` or `abort()` on error, depending on the value of `___VXGG___XALLOC_EXIT_ON_ERROR___` | 18 | // `calloc()` with error checking. Calls `error()` or `abort()` on error, depending on the value of `___VXGG___XALLOC_EXIT_ON_ERROR___` |
| 15 | void* xcalloc(size_t nmemb, size_t size); | 19 | void* xcalloc(size_t nmemb, size_t size); |
| 16 | 20 | ||
