diff options
author | Hans Hagen <pragma@wxs.nl> | 2023-05-08 18:02:07 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2023-05-08 18:02:07 +0200 |
commit | bb8ae12f4f94189fd1540b201e2aea78f485de97 (patch) | |
tree | 276278bd85ffa1571950669656cbdffe1b8fd68a /source/luametatex/source/luacore/lua54/src/lstate.c | |
parent | 51156ffe8b1434d9c1896f12a59554cbe877ee3d (diff) | |
download | context-bb8ae12f4f94189fd1540b201e2aea78f485de97.tar.gz |
2023-05-08 17:39:00
Diffstat (limited to 'source/luametatex/source/luacore/lua54/src/lstate.c')
-rw-r--r-- | source/luametatex/source/luacore/lua54/src/lstate.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/luametatex/source/luacore/lua54/src/lstate.c b/source/luametatex/source/luacore/lua54/src/lstate.c index 1fbefb4b1..1e925e5ad 100644 --- a/source/luametatex/source/luacore/lua54/src/lstate.c +++ b/source/luametatex/source/luacore/lua54/src/lstate.c @@ -339,7 +339,7 @@ int luaE_resetthread (lua_State *L, int status) { } -LUA_API int lua_resetthread (lua_State *L, lua_State *from) { +LUA_API int lua_closethread (lua_State *L, lua_State *from) { int status; lua_lock(L); L->nCcalls = (from) ? getCcalls(from) : 0; @@ -349,6 +349,14 @@ LUA_API int lua_resetthread (lua_State *L, lua_State *from) { } +/* +** Deprecated! Use 'lua_closethread' instead. +*/ +LUA_API int lua_resetthread (lua_State *L) { + return lua_closethread(L, NULL); +} + + LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { int i; lua_State *L; |