From 98d81e701a3e6c75b932ac75c872ae0e3f4d84f4 Mon Sep 17 00:00:00 2001 From: amelia squires Date: Mon, 14 Apr 2025 14:03:08 -0500 Subject: config change, local support, overall fixes --- src/lua.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/lua.h') diff --git a/src/lua.h b/src/lua.h index 4823ba0..3d58124 100644 --- a/src/lua.h +++ b/src/lua.h @@ -8,7 +8,8 @@ enum deep_copy_flags { SKIP_META = (1 << 0), SKIP_GC = (1 << 1), - IS_META = (1 << 2) + IS_META = (1 << 2), + SKIP__G = (1 << 3), }; #endif @@ -25,6 +26,11 @@ void luaI_deepcopy2(lua_State* src, lua_State* dest); void lua_set_global_table(lua_State*); //todo: char* _luaL_tolstring(lua_State*, int, size_t*); +void luaI_copyvars(lua_State* src, lua_State* dest); + +void lua_upvalue_key_table(lua_State* L, int fidx); +int lua_assign_upvalues(lua_State* L, int fidx); + //generic macro that takes other macros (see below) #define _tset_b(L, Tidx, K, V, F)\ lua_pushstring(L, K);\ -- cgit v1.2.3