mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-22 01:40:17 -05:00
Convert some uses of xassert(false) to BUG("some error message")
This commit is contained in:
parent
e19db15104
commit
1ec5684438
5 changed files with 10 additions and 12 deletions
5
render.c
5
render.c
|
|
@ -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};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue