diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2025-02-05 12:27:02 +0100 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2025-02-05 12:27:02 +0100 |
commit | 05e4cce366cccf92ad88f80695efa548fae187de (patch) | |
tree | 3332753154ecd89a87d7fdd6a4f9383d1b66ed1f /src/tools.hpp | |
parent | 59ae58fd31d63c261372bd5a36765328583bc1b6 (diff) | |
download | lanes-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.hpp | 5 |
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 | ||
16 | enum class FuncSubType | 16 | enum class [[nodiscard]] FuncSubType |
17 | { | 17 | { |
18 | Bytecode, | 18 | Bytecode, |
19 | Native, | 19 | Native, |
20 | FastJIT | 20 | FastJIT |
21 | }; | 21 | }; |
22 | 22 | ||
23 | [[nodiscard]] | ||
24 | FuncSubType luaG_getfuncsubtype(lua_State* L_, StackIndex i_); | 23 | FuncSubType luaG_getfuncsubtype(lua_State* L_, StackIndex i_); |
25 | 24 | ||
26 | // ################################################################################################# | 25 | // ################################################################################################# |
@@ -36,6 +35,6 @@ static constexpr RegistryUniqueKey kLookupRegKey{ 0xBF1FC5CF3C6DD47Bull }; // re | |||
36 | namespace tools { | 35 | namespace 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 |