aboutsummaryrefslogtreecommitdiff
path: root/src/lua.h
diff options
context:
space:
mode:
authoramelia squires <[email protected]>2025-01-11 15:35:15 -0600
committeramelia squires <[email protected]>2025-01-11 15:35:15 -0600
commita03075e85996df10f3e87ebee35c9420a606fd93 (patch)
tree19fb81522b9bf3d1ac4f82c85db877dfab21207c /src/lua.h
parentea98d74a379dc2cc86579e58815a30fbf0be1459 (diff)
chunked encoding
Diffstat (limited to 'src/lua.h')
-rw-r--r--src/lua.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lua.h b/src/lua.h
index c40d3f2..ccc632d 100644
--- a/src/lua.h
+++ b/src/lua.h
@@ -50,6 +50,17 @@ void lua_set_global_table(lua_State*);
#define luaI_tsetlud(L, Tidx, K, V)\
_tset_b(L, Tidx, K, V, lua_pushlightuserdata)
+#define luaI_treplk(L, Tidx, K, nK){\
+ lua_pushstring(L, K);\
+ lua_gettable(L, Tidx);\
+ int _v = lua_gettop(L);\
+ luaI_tsetv(L, Tidx, nK, _v);\
+ lua_pushstring(L, K);\
+ lua_pushnil(L);\
+ lua_settable(L, Tidx);\
+ lua_pop(L, 1);}
+
+
int writer(lua_State*, const void*, size_t, void*);
#if LUA_VERSION_NUM == 504