diff options
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 | ||
