diff options
Diffstat (limited to 'src/deep.h')
-rw-r--r-- | src/deep.h | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -20,15 +20,9 @@ extern "C" | |||
20 | #include <atomic> | 20 | #include <atomic> |
21 | 21 | ||
22 | // forwards | 22 | // forwards |
23 | enum class LookupMode; | ||
23 | class Universe; | 24 | class Universe; |
24 | 25 | ||
25 | enum class LookupMode | ||
26 | { | ||
27 | 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 | ||
28 | ToKeeper, // send a function from a lane to a keeper state | ||
29 | FromKeeper // send a function from a keeper state to a lane | ||
30 | }; | ||
31 | |||
32 | // ################################################################################################# | 26 | // ################################################################################################# |
33 | 27 | ||
34 | // xxh64 of string "kDeepVersion_1" generated at https://www.pelock.com/products/hash-calculator | 28 | // xxh64 of string "kDeepVersion_1" generated at https://www.pelock.com/products/hash-calculator |
@@ -80,3 +74,5 @@ class DeepFactory | |||
80 | static void DeleteDeepObject(lua_State* L_, DeepPrelude* o_); | 74 | static void DeleteDeepObject(lua_State* L_, DeepPrelude* o_); |
81 | [[nodiscard]] static char const* PushDeepProxy(DestState L_, DeepPrelude* o_, int nuv_, LookupMode mode_); | 75 | [[nodiscard]] static char const* PushDeepProxy(DestState L_, DeepPrelude* o_, int nuv_, LookupMode mode_); |
82 | }; | 76 | }; |
77 | |||
78 | [[nodiscard]] DeepFactory* LookupFactory(lua_State* L_, int index_, LookupMode mode_); | ||