diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-10-28 17:57:31 +0100 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-10-28 17:57:31 +0100 |
commit | 76da2875eb2af9f8191c2adf4f9663ac3a2cec89 (patch) | |
tree | 112bd51318e401bf8745123919a635e765365318 /src/tools.h | |
parent | cb6e1c2f3b93d5de02de4a8c8f13891e33674a36 (diff) | |
download | lanes-76da2875eb2af9f8191c2adf4f9663ac3a2cec89.tar.gz lanes-76da2875eb2af9f8191c2adf4f9663ac3a2cec89.tar.bz2 lanes-76da2875eb2af9f8191c2adf4f9663ac3a2cec89.zip |
Renamed allocator.h → allocator.hpp, cancel.h → cancel.hpp, keeper.h → keeper.hpp, tools.h → tools.hpp
Diffstat (limited to 'src/tools.h')
-rw-r--r-- | src/tools.h | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/src/tools.h b/src/tools.h deleted file mode 100644 index c587500..0000000 --- a/src/tools.h +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include "uniquekey.hpp" | ||
4 | |||
5 | class Universe; | ||
6 | |||
7 | enum class LookupMode | ||
8 | { | ||
9 | LaneBody, // send the lane body directly from the source to the destination lane. keep this one first so that it's the value we get when we default-construct | ||
10 | ToKeeper, // send a function from a lane to a keeper state | ||
11 | FromKeeper // send a function from a keeper state to a lane | ||
12 | }; | ||
13 | |||
14 | enum class FuncSubType | ||
15 | { | ||
16 | Bytecode, | ||
17 | Native, | ||
18 | FastJIT | ||
19 | }; | ||
20 | |||
21 | [[nodiscard]] FuncSubType luaG_getfuncsubtype(lua_State* L_, StackIndex i_); | ||
22 | |||
23 | // ################################################################################################# | ||
24 | |||
25 | // xxh64 of string "kConfigRegKey" generated at https://www.pelock.com/products/hash-calculator | ||
26 | static constexpr RegistryUniqueKey kConfigRegKey{ 0x608379D20A398046ull }; // registry key to access the configuration | ||
27 | |||
28 | // xxh64 of string "kLookupRegKey" generated at https://www.pelock.com/products/hash-calculator | ||
29 | static constexpr RegistryUniqueKey kLookupRegKey{ 0xBF1FC5CF3C6DD47Bull }; // registry key to access the lookup database | ||
30 | |||
31 | // ################################################################################################# | ||
32 | |||
33 | namespace tools { | ||
34 | 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_); | ||
36 | void SerializeRequire(lua_State* L_); | ||
37 | } // namespace tools | ||