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 --- ime.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'ime.c') diff --git a/ime.c b/ime.c index 9e2699f2..5a736f83 100644 --- a/ime.c +++ b/ime.c @@ -27,8 +27,8 @@ enter(void *data, struct zwp_text_input_v3 *zwp_text_input_v3, /* The main grid is the *only* input-receiving surface we have */ /* TODO: can we receive text_input::enter() _before_ keyboard_enter()? */ struct terminal UNUSED *term = seat->kbd_focus; - assert(term != NULL); - assert(term_surface_kind(term, surface) == TERM_SURF_GRID); + xassert(term != NULL); + xassert(term_surface_kind(term, surface) == TERM_SURF_GRID); ime_enable(seat); } @@ -111,7 +111,7 @@ done(void *data, struct zwp_text_input_v3 *zwp_text_input_v3, return; } - assert(seat->kbd_focus); + xassert(seat->kbd_focus); struct terminal *term = seat->kbd_focus; /* 1. Delete existing pre-edit text */ @@ -272,11 +272,11 @@ done(void *data, struct zwp_text_input_v3 *zwp_text_input_v3, LOG_DBG("pre-edit cursor: begin=%d, end=%d", cell_begin, cell_end); - assert(cell_begin >= 0); - assert(cell_begin < cell_count); - assert(cell_begin <= cell_end); - assert(cell_end >= 0); - assert(cell_end <= cell_count); + xassert(cell_begin >= 0); + xassert(cell_begin < cell_count); + xassert(cell_begin <= cell_end); + xassert(cell_end >= 0); + xassert(cell_end <= cell_count); term->ime.preedit.cursor.hidden = false; term->ime.preedit.cursor.start = cell_begin; @@ -331,7 +331,7 @@ ime_enable(struct seat *seat) return; struct terminal *term = seat->kbd_focus; - assert(term != NULL); + xassert(term != NULL); if (!term->ime.enabled) return; -- cgit v1.3