aboutsummaryrefslogtreecommitdiff
path: root/src/state.hpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-11-20 17:51:49 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2024-11-20 17:51:49 +0100
commit304e4dfabe4555dff4aa72e75b677405fd30d1b3 (patch)
treeac934000415b46f784bda25ba671e74b9481573b /src/state.hpp
parent872826ecaca5370e3492385cff3795d995b33ec7 (diff)
downloadlanes-304e4dfabe4555dff4aa72e75b677405fd30d1b3.tar.gz
lanes-304e4dfabe4555dff4aa72e75b677405fd30d1b3.tar.bz2
lanes-304e4dfabe4555dff4aa72e75b677405fd30d1b3.zip
Some [[nodiscard]] boyscouting
Diffstat (limited to 'src/state.hpp')
-rw-r--r--src/state.hpp7
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
7enum class LookupMode;
8class Universe; 7class Universe;
9 8
10namespace state { 9namespace 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