1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-10 22:36:02 +00:00

rogueviz:: do_cleanup as a separate function

This commit is contained in:
Zeno Rogue
2021-03-31 12:19:31 +02:00
parent 4af75fe611
commit 03f55aa372
2 changed files with 10 additions and 4 deletions

View File

@@ -98,6 +98,8 @@ namespace rogueviz {
void storeall(int from = 0);
extern vector<reaction_t> cleanup;
void do_cleanup();
template<class T, class U> void rv_hook(hookset<T>& m, int prio, U&& hook) {
int p = addHook(m, prio, hook);