aboutsummaryrefslogtreecommitdiff
path: root/src/tools.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools.h')
-rw-r--r--src/tools.h37
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
5class Universe;
6
7enum 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
14enum 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
26static 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
29static constexpr RegistryUniqueKey kLookupRegKey{ 0xBF1FC5CF3C6DD47Bull }; // registry key to access the lookup database
30
31// #################################################################################################
32
33namespace 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