diff options
| author | robojumper <robojumper@gmail.com> | 2025-09-18 14:16:32 +0200 |
|---|---|---|
| committer | robojumper <robojumper@gmail.com> | 2025-09-18 14:16:32 +0200 |
| commit | fd9b74877f5154042b770a4d1ae85733c5f9d492 (patch) | |
| tree | 6a1348485169d2635a7a59a43e095131db06cd1d /include/s | |
| parent | ab47abca11c18d7010c9c7b2d13782d22f86d118 (diff) | |
d_lyt_msg_window_select_btn mostly OK
Diffstat (limited to 'include/s')
| -rw-r--r-- | include/s/s_State.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/s/s_State.hpp b/include/s/s_State.hpp index 03c90acd..d461f630 100644 --- a/include/s/s_State.hpp +++ b/include/s/s_State.hpp @@ -46,7 +46,13 @@ #define STATE_MGR_DEFINE_UTIL_GETOLDSTATEID(class_name) \ const sFStateID_c<class_name> &getOldStateID() const { \ - return (sFStateID_c<class_name> &)*mStateMgr.getOldStateID(); \ + return (sFStateID_c<class_name> &)*mStateMgr.getOldStateID(); \ + } + +// Use this when you need need sFStateID_c vtables to appear in a different order +#define STATE_MGR_DEFINE_UTIL_INSTANCIATE_STATE(class_name) \ + bool dummy_need_state_instanciation(const sFStateID_c<class_name> &value) const { \ + return value.isNull(); \ } // TODO this is probably not the whole solution. |
