diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-11-20 17:51:49 +0100 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-11-20 17:51:49 +0100 |
commit | 304e4dfabe4555dff4aa72e75b677405fd30d1b3 (patch) | |
tree | ac934000415b46f784bda25ba671e74b9481573b /src/state.hpp | |
parent | 872826ecaca5370e3492385cff3795d995b33ec7 (diff) | |
download | lanes-304e4dfabe4555dff4aa72e75b677405fd30d1b3.tar.gz lanes-304e4dfabe4555dff4aa72e75b677405fd30d1b3.tar.bz2 lanes-304e4dfabe4555dff4aa72e75b677405fd30d1b3.zip |
Some [[nodiscard]] boyscouting
Diffstat (limited to 'src/state.hpp')
-rw-r--r-- | src/state.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/state.hpp b/src/state.hpp index 7401fe9..1e1e1f5 100644 --- a/src/state.hpp +++ b/src/state.hpp | |||
@@ -4,11 +4,12 @@ | |||
4 | #include "macros_and_utils.hpp" | 4 | #include "macros_and_utils.hpp" |
5 | 5 | ||
6 | // forwards | 6 | // forwards |
7 | enum class LookupMode; | ||
8 | class Universe; | 7 | class Universe; |
9 | 8 | ||
10 | namespace state { | 9 | namespace state { |
11 | [[nodiscard]] lua_State* CreateState(Universe* U_, lua_State* from_, std::string_view const& hint_); | 10 | [[nodiscard]] |
12 | [[nodiscard]] lua_State* NewLaneState(Universe* U_, SourceState from_, std::optional<std::string_view> const& libs_); | 11 | lua_State* CreateState(Universe* U_, lua_State* from_, std::string_view const& hint_); |
12 | [[nodiscard]] | ||
13 | lua_State* NewLaneState(Universe* U_, SourceState from_, std::optional<std::string_view> const& libs_); | ||
13 | LUAG_FUNC(supported_libs); | 14 | LUAG_FUNC(supported_libs); |
14 | } // namespace state | 15 | } // namespace state |