From 909470be9f7ec1dd2d09ae1a371d69c9c652e957 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Sat, 26 Jun 2021 18:25:53 +0200 Subject: fix stack overflow when transfering a clonable userdata referencing itself through a uservalue --- src/tools.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/tools.h') diff --git a/src/tools.h b/src/tools.h index 0df88e9..3bf5a02 100644 --- a/src/tools.h +++ b/src/tools.h @@ -22,6 +22,19 @@ void luaG_dump( lua_State* L); // ################################################################################################ +void push_registry_subtable_mode( lua_State* L, UniqueKey key_, const char* mode_); +void push_registry_subtable( lua_State* L, UniqueKey key_); + +enum e_vt +{ + VT_NORMAL, + VT_KEY, + VT_METATABLE +}; +bool_t inter_copy_one( Universe* U, lua_State* L2, uint_t L2_cache_i, lua_State* L, uint_t i, enum e_vt vt, LookupMode mode_, char const* upName_); + +// ################################################################################################ + int luaG_inter_copy_package( Universe* U, lua_State* L, lua_State* L2, int package_idx_, LookupMode mode_); int luaG_inter_copy( Universe* U, lua_State* L, lua_State* L2, uint_t n, LookupMode mode_); -- cgit v1.2.3-55-g6feb