aboutsummaryrefslogtreecommitdiff
path: root/src/intercopycontext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/intercopycontext.cpp')
-rw-r--r--src/intercopycontext.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/intercopycontext.cpp b/src/intercopycontext.cpp
index 285ca9b..34a1c95 100644
--- a/src/intercopycontext.cpp
+++ b/src/intercopycontext.cpp
@@ -913,7 +913,10 @@ LuaType InterCopyContext::processConversion() const
913 // perform the custom cloning part 913 // perform the custom cloning part
914 lua_insert(L2, -2); // L2: ... u mt 914 lua_insert(L2, -2); // L2: ... u mt
915 // __lanesclone should always exist because we wouldn't be restoring data from a userdata_clone_sentinel closure to begin with 915 // __lanesclone should always exist because we wouldn't be restoring data from a userdata_clone_sentinel closure to begin with
916 std::ignore = luaG_getfield(L2, -1, "__lanesclone"); // L2: ... u mt __lanesclone 916 LuaType const _funcType{ luaG_getfield(L2, -1, "__lanesclone") }; // L2: ... u mt __lanesclone
917 if (_funcType != LuaType::FUNCTION) {
918 raise_luaL_error(getErrL(), "INTERNAL ERROR: __lanesclone is a %s, not a function", luaG_typename(L2, _funcType).data());
919 }
917 lua_remove(L2, -2); // L2: ... u __lanesclone 920 lua_remove(L2, -2); // L2: ... u __lanesclone
918 lua_pushlightuserdata(L2, _clone); // L2: ... u __lanesclone clone 921 lua_pushlightuserdata(L2, _clone); // L2: ... u __lanesclone clone
919 lua_pushlightuserdata(L2, _source); // L2: ... u __lanesclone clone source 922 lua_pushlightuserdata(L2, _source); // L2: ... u __lanesclone clone source