diff options
| author | Craig Barnes <craigbarnes@protonmail.com> | 2021-02-09 13:52:33 +0000 |
|---|---|---|
| committer | Craig Barnes <craigbarnes@protonmail.com> | 2021-02-09 13:52:33 +0000 |
| commit | 1ec56844387ed910b7e87bae186b58cc22cc317a (patch) | |
| tree | 9152b213b96f67d4ab6b9e4e426350012260808d /render.c | |
| parent | render: use portable HAS_INCLUDE() wrapper instead of __has_include() (diff) | |
Convert some uses of xassert(false) to BUG("some error message")
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1367,11 +1367,10 @@ get_csd_data(const struct terminal *term, enum csd_surface surf_idx) case CSD_SURF_CLOSE: return (struct csd_data){term->width - 1 * button_width, 0, button_close_width, title_height}; case CSD_SURF_COUNT: - xassert(false); - return (struct csd_data){0}; + break; } - xassert(false); + BUG("Invalid csd_surface type"); return (struct csd_data){0}; } |
