diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-13 15:03:12 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-13 18:15:46 +0200 |
commit | c46869699aa3ae477516fba0043c2cfd8cda822a (patch) | |
tree | 2a63c9302f530a4da5ee3121eb2a545c39e0fe20 /src/deep.h | |
parent | 13f7f505375f7c1afd3a7e479a64cc147501b01d (diff) | |
download | lanes-c46869699aa3ae477516fba0043c2cfd8cda822a.tar.gz lanes-c46869699aa3ae477516fba0043c2cfd8cda822a.tar.bz2 lanes-c46869699aa3ae477516fba0043c2cfd8cda822a.zip |
Move InterCopyContext implementation in a separate file
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_); | ||