mirror of
https://github.com/labwc/labwc.git
synced 2026-04-13 08:21:15 -04:00
src/ssd: ensure we crash properly when compiled without asserts
This commit is contained in:
parent
d4a74f5ab2
commit
5a9ad76cd4
1 changed files with 2 additions and 0 deletions
|
|
@ -93,6 +93,8 @@ add_scene_button_corner(struct wl_list *part_list, enum ssd_part_type type,
|
||||||
offset_x = 0;
|
offset_x = 0;
|
||||||
} else {
|
} else {
|
||||||
assert(false && "invalid corner button type");
|
assert(false && "invalid corner button type");
|
||||||
|
wlr_log(WLR_ERROR, "invalid corner button type");
|
||||||
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
struct ssd_part *button_root = add_scene_part(part_list, corner_type);
|
struct ssd_part *button_root = add_scene_part(part_list, corner_type);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue