mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
cursor-shape: assert lookup succeeded
This commit is contained in:
parent
803b250652
commit
9155948ac8
1 changed files with 2 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ cursor_shape_to_string(enum cursor_shape shape)
|
|||
};
|
||||
|
||||
xassert(shape <= ALEN(table));
|
||||
xassert(table[shape] != NULL);
|
||||
return table[shape];
|
||||
}
|
||||
|
||||
|
|
@ -47,6 +48,7 @@ cursor_shape_to_server_shape(enum cursor_shape shape)
|
|||
};
|
||||
|
||||
xassert(shape <= ALEN(table));
|
||||
xassert(table[shape] != 0);
|
||||
return table[shape];
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue