diff options
| author | Craig Barnes <craigbarnes@protonmail.com> | 2021-01-16 20:16:00 +0000 |
|---|---|---|
| committer | Craig Barnes <craigbarnes@protonmail.com> | 2021-01-16 20:16:00 +0000 |
| commit | e56136ce1192d04a52b01ccb41284f0b7896430e (patch) | |
| tree | 10948eb4aface28e80d6a075fecf11fad3075618 /xmalloc.c | |
| parent | Print stack trace on assert() failure or when calling fatal_error() (diff) | |
debug: rename assert() to xassert(), to avoid clashing with <assert.h>
Diffstat (limited to 'xmalloc.c')
| -rw-r--r-- | xmalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -28,7 +28,7 @@ xmalloc(size_t size) void * xcalloc(size_t nmemb, size_t size) { - assert(size != 0); + xassert(size != 0); return check_alloc(calloc(likely(nmemb) ? nmemb : 1, size)); } |
