diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-29 14:27:17 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-29 14:27:17 +0200 |
commit | 4007dbf5a2262a7c4f2f26089071942dde7c3a91 (patch) | |
tree | a53df94b2d640d9b374241fdec8905864a012c01 /src/tools.h | |
parent | 5890678289e28cc9e666c1dda8265712bd27ac03 (diff) | |
download | lanes-4007dbf5a2262a7c4f2f26089071942dde7c3a91.tar.gz lanes-4007dbf5a2262a7c4f2f26089071942dde7c3a91.tar.bz2 lanes-4007dbf5a2262a7c4f2f26089071942dde7c3a91.zip |
Moved implementation of lanes.nameof in a separate file
Diffstat (limited to 'src/tools.h')
-rw-r--r-- | src/tools.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/tools.h b/src/tools.h index 3659b42..e240fdb 100644 --- a/src/tools.h +++ b/src/tools.h | |||
@@ -22,18 +22,16 @@ enum class FuncSubType | |||
22 | 22 | ||
23 | // ################################################################################################# | 23 | // ################################################################################################# |
24 | 24 | ||
25 | [[nodiscard]] int luaG_nameof(lua_State* L_); | ||
26 | |||
27 | void populate_func_lookup_table(lua_State* const L_, int const i_, std::string_view const& name_); | ||
28 | |||
29 | namespace tools { | ||
30 | void SerializeRequire(lua_State* L_); | ||
31 | } // namespace tools | ||
32 | |||
33 | // ################################################################################################# | ||
34 | |||
35 | // xxh64 of string "kConfigRegKey" generated at https://www.pelock.com/products/hash-calculator | 25 | // xxh64 of string "kConfigRegKey" generated at https://www.pelock.com/products/hash-calculator |
36 | static constexpr RegistryUniqueKey kConfigRegKey{ 0x608379D20A398046ull }; // registry key to access the configuration | 26 | static constexpr RegistryUniqueKey kConfigRegKey{ 0x608379D20A398046ull }; // registry key to access the configuration |
37 | 27 | ||
38 | // xxh64 of string "kLookupRegKey" generated at https://www.pelock.com/products/hash-calculator | 28 | // xxh64 of string "kLookupRegKey" generated at https://www.pelock.com/products/hash-calculator |
39 | static constexpr RegistryUniqueKey kLookupRegKey{ 0xBF1FC5CF3C6DD47Bull }; // registry key to access the lookup database | 29 | static constexpr RegistryUniqueKey kLookupRegKey{ 0xBF1FC5CF3C6DD47Bull }; // registry key to access the lookup database |
30 | |||
31 | // ################################################################################################# | ||
32 | |||
33 | namespace tools { | ||
34 | void PopulateFuncLookupTable(lua_State* const L_, int const i_, std::string_view const& name_); | ||
35 | [[nodiscard]] std::string_view PushFQN(lua_State* L_, int t_, int last_); | ||
36 | void SerializeRequire(lua_State* L_); | ||
37 | } // namespace tools | ||