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 /dcs.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 'dcs.c')
| -rw-r--r-- | dcs.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -34,10 +34,10 @@ dcs_hook(struct terminal *term, uint8_t final) LOG_DBG("hook: %c (intermediate(s): %.2s, param=%d)", final, (const char *)&term->vt.private, vt_param_get(term, 0, 0)); - assert(term->vt.dcs.data == NULL); - assert(term->vt.dcs.size == 0); - assert(term->vt.dcs.put_handler == NULL); - assert(term->vt.dcs.unhook_handler == NULL); + xassert(term->vt.dcs.data == NULL); + xassert(term->vt.dcs.size == 0); + xassert(term->vt.dcs.put_handler == NULL); + xassert(term->vt.dcs.unhook_handler == NULL); switch (term->vt.private) { case 0: @@ -70,7 +70,7 @@ ensure_size(struct terminal *term, size_t required_size) return true; size_t new_size = (required_size + 127) / 128 * 128; - assert(new_size > 0); + xassert(new_size > 0); uint8_t *new_data = realloc(term->vt.dcs.data, new_size); if (new_data == NULL) { |
