diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-19 09:15:58 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-19 09:15:58 +0200 |
commit | ad7a8a8a8f9f762ce9952e0e2cea98e73ac2b32e (patch) | |
tree | 6625a5bc16cde82429687a480eaf6fac224cb64d /src/state.h | |
parent | 271ce5cff2b5e9c1e4d4f236c731ceb263716681 (diff) | |
download | lanes-ad7a8a8a8f9f762ce9952e0e2cea98e73ac2b32e.tar.gz lanes-ad7a8a8a8f9f762ce9952e0e2cea98e73ac2b32e.tar.bz2 lanes-ad7a8a8a8f9f762ce9952e0e2cea98e73ac2b32e.zip |
Improved on_state_create implementation
* modernized implementation uses a std::variant
* detect Lua functions with upvalues earlier
Diffstat (limited to 'src/state.h')
-rw-r--r-- | src/state.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/state.h b/src/state.h index 98bb47b..f809d50 100644 --- a/src/state.h +++ b/src/state.h | |||
@@ -8,10 +8,6 @@ enum class LookupMode; | |||
8 | class Universe; | 8 | class Universe; |
9 | 9 | ||
10 | namespace state { | 10 | namespace state { |
11 | |||
12 | void CallOnStateCreate(Universe* U_, lua_State* L_, lua_State* from_, LookupMode mode_); | ||
13 | [[nodiscard]] lua_State* CreateState(Universe* U_, lua_State* from_, std::string_view const& hint_); | 11 | [[nodiscard]] lua_State* CreateState(Universe* U_, lua_State* from_, std::string_view const& hint_); |
14 | void InitializeOnStateCreate(Universe* U_, lua_State* L_); | ||
15 | [[nodiscard]] lua_State* NewLaneState(Universe* U_, SourceState from_, std::optional<std::string_view> const& libs_); | 12 | [[nodiscard]] lua_State* NewLaneState(Universe* U_, SourceState from_, std::optional<std::string_view> const& libs_); |
16 | |||
17 | } // namespace state | 13 | } // namespace state |