aboutsummaryrefslogtreecommitdiff
path: root/src/tools.hpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2025-02-05 12:27:02 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2025-02-05 12:27:02 +0100
commit05e4cce366cccf92ad88f80695efa548fae187de (patch)
tree3332753154ecd89a87d7fdd6a4f9383d1b66ed1f /src/tools.hpp
parent59ae58fd31d63c261372bd5a36765328583bc1b6 (diff)
downloadlanes-05e4cce366cccf92ad88f80695efa548fae187de.tar.gz
lanes-05e4cce366cccf92ad88f80695efa548fae187de.tar.bz2
lanes-05e4cce366cccf92ad88f80695efa548fae187de.zip
Minor internal code tweaks
* mark all eligible classes Final * new TableIndex strong type * buildfixes for HAVE_DEBUGSPEW() * overridden virtual destructors tagged as such
Diffstat (limited to 'src/tools.hpp')
-rw-r--r--src/tools.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tools.hpp b/src/tools.hpp
index 77ba5d2..9a62cda 100644
--- a/src/tools.hpp
+++ b/src/tools.hpp
@@ -13,14 +13,13 @@ enum class LookupMode
13 13
14// ################################################################################################# 14// #################################################################################################
15 15
16enum class FuncSubType 16enum class [[nodiscard]] FuncSubType
17{ 17{
18 Bytecode, 18 Bytecode,
19 Native, 19 Native,
20 FastJIT 20 FastJIT
21}; 21};
22 22
23[[nodiscard]]
24FuncSubType luaG_getfuncsubtype(lua_State* L_, StackIndex i_); 23FuncSubType luaG_getfuncsubtype(lua_State* L_, StackIndex i_);
25 24
26// ################################################################################################# 25// #################################################################################################
@@ -36,6 +35,6 @@ static constexpr RegistryUniqueKey kLookupRegKey{ 0xBF1FC5CF3C6DD47Bull }; // re
36namespace tools { 35namespace tools {
37 void PopulateFuncLookupTable(lua_State* L_, StackIndex i_, std::string_view const& name_); 36 void PopulateFuncLookupTable(lua_State* L_, StackIndex i_, std::string_view const& name_);
38 [[nodiscard]] 37 [[nodiscard]]
39 std::string_view PushFQN(lua_State* L_, StackIndex t_, int last_); 38 std::string_view PushFQN(lua_State* L_, StackIndex t_, TableIndex last_);
40 void SerializeRequire(lua_State* L_); 39 void SerializeRequire(lua_State* L_);
41} // namespace tools 40} // namespace tools