mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-13 08:21:03 -04: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(shape <= ALEN(table));
|
||||||
|
xassert(table[shape] != NULL);
|
||||||
return table[shape];
|
return table[shape];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -47,6 +48,7 @@ cursor_shape_to_server_shape(enum cursor_shape shape)
|
||||||
};
|
};
|
||||||
|
|
||||||
xassert(shape <= ALEN(table));
|
xassert(shape <= ALEN(table));
|
||||||
|
xassert(table[shape] != 0);
|
||||||
return table[shape];
|
return table[shape];
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue