mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-20 15:44:48 +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:
@@ -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