diff options
| author | Craig Barnes <craigbarnes@protonmail.com> | 2021-02-10 21:03:00 +0000 |
|---|---|---|
| committer | Craig Barnes <craigbarnes@protonmail.com> | 2021-02-10 21:03:00 +0000 |
| commit | 1add430b5b6bc2ff616fb859c3b882602ff5222d (patch) | |
| tree | a7df73c007742a43b4948a8ef4565be5bf18e070 /input.c | |
| parent | Merge branch 'turn-meson-terminfo-option-into-a-feature' (diff) | |
| parent | Mark slave_exec() as "noreturn" and convert xassert(false) to BUG(...) (diff) | |
Merge branch 'xassert-false'
Diffstat (limited to 'input.c')
| -rw-r--r-- | input.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -209,7 +209,7 @@ execute_binding(struct seat *seat, struct terminal *term, break; default: - xassert(false); + BUG("Unhandled action type"); success = false; break; } @@ -325,7 +325,7 @@ execute_binding(struct seat *seat, struct terminal *term, return true; case BIND_ACTION_COUNT: - xassert(false); + BUG("Invalid action type"); return false; } @@ -1150,7 +1150,7 @@ xcursor_for_csd_border(struct terminal *term, int x, int y) else if (term->active_surface == TERM_SURF_BORDER_TOP) return XCURSOR_TOP_SIDE; else if (term->active_surface == TERM_SURF_BORDER_BOTTOM) return XCURSOR_BOTTOM_SIDE; else { - xassert(false); + BUG("Unreachable"); return NULL; } } @@ -1225,7 +1225,7 @@ wl_pointer_enter(void *data, struct wl_pointer *wl_pointer, break; case TERM_SURF_NONE: - xassert(false); + BUG("Invalid surface type"); break; } } @@ -1806,7 +1806,7 @@ wl_pointer_button(void *data, struct wl_pointer *wl_pointer, } case TERM_SURF_NONE: - xassert(false); + BUG("Invalid surface type"); break; } |
