mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-26 08:07:10 +00:00
moved the definition of pushScreen to hyper.h, so that hook_in_subscreen it works with older compilers
This commit is contained in:
1 parent
a1b221129a
commit
94024dd5f1
2 files changed
+4
-1
No files matched your search
@@ -1862,7 +1862,6 @@ EX void normalscreen() {
|
||||
EX vector< function<void()> > screens = { normalscreen };
|
||||
|
||||
#if HDR
|
||||
template<class T> void pushScreen(const T& x) { screens.push_back(x); }
|
||||
inline void popScreen() { if(isize(screens)>1) screens.pop_back(); }
|
||||
inline void popScreenAll() { while(isize(screens)>1) popScreen(); }
|
||||
typedef void (*cfunction)();
|
||||
|
||||
Reference in new issue
Block a user