From e56136ce1192d04a52b01ccb41284f0b7896430e Mon Sep 17 00:00:00 2001 From: Craig Barnes Date: Sat, 16 Jan 2021 20:16:00 +0000 Subject: debug: rename assert() to xassert(), to avoid clashing with --- dcs.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'dcs.c') diff --git a/dcs.c b/dcs.c index 7d0dd6cc..f9e191d9 100644 --- a/dcs.c +++ b/dcs.c @@ -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) { -- cgit v1.3