diff options
| author | amelia squires <[email protected]> | 2025-01-11 15:35:15 -0600 |
|---|---|---|
| committer | amelia squires <[email protected]> | 2025-01-11 15:35:15 -0600 |
| commit | a03075e85996df10f3e87ebee35c9420a606fd93 (patch) | |
| tree | 19fb81522b9bf3d1ac4f82c85db877dfab21207c /src/lua.h | |
| parent | ea98d74a379dc2cc86579e58815a30fbf0be1459 (diff) | |
chunked encoding
Diffstat (limited to 'src/lua.h')
| -rw-r--r-- | src/lua.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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
|
