From 5276c1d2f35bb8df9b3fd0933cf5d1de1b9133ed Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Mon, 13 May 2024 15:03:12 +0200 Subject: Move InterCopyContext implementation in a separate file --- src/deep.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/deep.h') diff --git a/src/deep.h b/src/deep.h index 784952c..41df86f 100644 --- a/src/deep.h +++ b/src/deep.h @@ -20,15 +20,9 @@ extern "C" #include // forwards +enum class LookupMode; class Universe; -enum class LookupMode -{ - 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 - ToKeeper, // send a function from a lane to a keeper state - FromKeeper // send a function from a keeper state to a lane -}; - // ################################################################################################# // xxh64 of string "kDeepVersion_1" generated at https://www.pelock.com/products/hash-calculator @@ -80,3 +74,5 @@ class DeepFactory static void DeleteDeepObject(lua_State* L_, DeepPrelude* o_); [[nodiscard]] static char const* PushDeepProxy(DestState L_, DeepPrelude* o_, int nuv_, LookupMode mode_); }; + +[[nodiscard]] DeepFactory* LookupFactory(lua_State* L_, int index_, LookupMode mode_); -- cgit v1.2.3-55-g6feb