aboutsummaryrefslogtreecommitdiff
path: root/src/tools.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/tools.hpp
parent872826ecaca5370e3492385cff3795d995b33ec7 (diff)
downloadlanes-304e4dfabe4555dff4aa72e75b677405fd30d1b3.tar.gz
lanes-304e4dfabe4555dff4aa72e75b677405fd30d1b3.tar.bz2
lanes-304e4dfabe4555dff4aa72e75b677405fd30d1b3.zip
Some [[nodiscard]] boyscouting
Diffstat (limited to 'src/tools.hpp')
-rw-r--r--src/tools.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tools.hpp b/src/tools.hpp
index c587500..77ba5d2 100644
--- a/src/tools.hpp
+++ b/src/tools.hpp
@@ -11,6 +11,8 @@ enum class LookupMode
11 FromKeeper // send a function from a keeper state to a lane 11 FromKeeper // send a function from a keeper state to a lane
12}; 12};
13 13
14// #################################################################################################
15
14enum class FuncSubType 16enum class FuncSubType
15{ 17{
16 Bytecode, 18 Bytecode,
@@ -18,7 +20,8 @@ enum class FuncSubType
18 FastJIT 20 FastJIT
19}; 21};
20 22
21[[nodiscard]] FuncSubType luaG_getfuncsubtype(lua_State* L_, StackIndex i_); 23[[nodiscard]]
24FuncSubType luaG_getfuncsubtype(lua_State* L_, StackIndex i_);
22 25
23// ################################################################################################# 26// #################################################################################################
24 27
@@ -32,6 +35,7 @@ static constexpr RegistryUniqueKey kLookupRegKey{ 0xBF1FC5CF3C6DD47Bull }; // re
32 35
33namespace tools { 36namespace tools {
34 void PopulateFuncLookupTable(lua_State* L_, StackIndex i_, std::string_view const& name_); 37 void PopulateFuncLookupTable(lua_State* L_, StackIndex i_, std::string_view const& name_);
35 [[nodiscard]] std::string_view PushFQN(lua_State* L_, StackIndex t_, int last_); 38 [[nodiscard]]
39 std::string_view PushFQN(lua_State* L_, StackIndex t_, int last_);
36 void SerializeRequire(lua_State* L_); 40 void SerializeRequire(lua_State* L_);
37} // namespace tools 41} // namespace tools