summaryrefslogtreecommitdiff
path: root/include/s
diff options
context:
space:
mode:
authorrobojumper <robojumper@gmail.com>2025-09-14 17:03:33 +0200
committerrobojumper <robojumper@gmail.com>2025-09-14 17:09:09 +0200
commitc05597754e2da9e781af83ed8a85d84514829b3f (patch)
tree26d6cb714af0d00ca955c4afb62dceef4e31b6a2 /include/s
parent67c9e3346c32ff52c37e21ec5804a2fd59cf9031 (diff)
d_a_knight_leader_bird OK
Diffstat (limited to 'include/s')
-rw-r--r--include/s/s_State.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/s/s_State.hpp b/include/s/s_State.hpp
index 262885af..03c90acd 100644
--- a/include/s/s_State.hpp
+++ b/include/s/s_State.hpp
@@ -44,6 +44,11 @@
return *mStateMgr.getStateID() == value; \
}
+#define STATE_MGR_DEFINE_UTIL_GETOLDSTATEID(class_name) \
+ const sFStateID_c<class_name> &getOldStateID() const { \
+ return (sFStateID_c<class_name> &)*mStateMgr.getOldStateID(); \
+ }
+
// TODO this is probably not the whole solution.
// The problems with this approach are:
// * You can't define the same state name for multiple files in the same TU due to baseID_ symbol clash.