hr::span exported

This commit is contained in:
Zeno Rogue 2022-03-27 12:42:44 +02:00
parent 78ddda1b4f
commit 37575bcdaf
1 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,7 @@ EX bool hide_player() {
;
}
#if HDR
template<class T>
class span {
T *begin_ = nullptr;
@ -62,6 +63,7 @@ hr::span<const shiftmatrix> span_at(const Map& map, const Key& key) {
auto it = map.find(key);
return (it == map.end()) ? hr::span<const shiftmatrix>() : hr::span<const shiftmatrix>(it->second.data(), it->second.size());
}
#endif
EX hookset<bool(int sym, int uni)> hooks_handleKey;
EX hookset<bool(cell *c, const shiftmatrix& V)> hooks_drawcell;