diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-01-20 16:47:05 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-01-20 16:47:05 +0000 |
| commit | c5031be4899ea516635ef7c65a6f82b3b45860b9 (patch) | |
| tree | 10948eb4aface28e80d6a075fecf11fad3075618 /dcs.c | |
| parent | Merge branch 'decset-1047-and-1048' (diff) | |
| parent | debug: rename assert() to xassert(), to avoid clashing with <assert.h> (diff) | |
Merge branch 'stacktrace'
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) { |
