aboutsummaryrefslogtreecommitdiff
path: root/src/lua.h
diff options
context:
space:
mode:
authoramelia squires <[email protected]>2025-04-14 14:03:08 -0500
committeramelia squires <[email protected]>2025-04-14 14:03:08 -0500
commitdc7e4527e88ed0c59e17c0ff04c01e1c92136e42 (patch)
tree48c6107656e14cfbbcbb49424fc3454de850a5db /src/lua.h
parent9c3eea30aeb3c13b6df2288fbd086756a217a04b (diff)
config change, local support, overall fixes
Diffstat (limited to 'src/lua.h')
-rw-r--r--src/lua.h8
1 files changed, 7 insertions, 1 deletions
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);\