diff options
| author | Craig Barnes <craigbarnes@protonmail.com> | 2021-02-09 15:16:19 +0000 |
|---|---|---|
| committer | Craig Barnes <craigbarnes@protonmail.com> | 2021-02-09 15:16:19 +0000 |
| commit | 2f81a1d07c3828391bf1b5656a9143aaf3822089 (patch) | |
| tree | 8ff4cb907b0ecab598bfc4918016de35523981ec /input.c | |
| parent | Convert some uses of xassert(false) to BUG("some error message") (diff) | |
Convert some more uses of xassert(false) to BUG("...")
Diffstat (limited to 'input.c')
| -rw-r--r-- | input.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } } |
