summaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-05-02 16:41:43 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-05-02 16:41:43 -0300
commit6443185167c77adcc8552a3fee7edab7895db1a9 (patch)
tree20add1421687313b7dcb4b9481771ed60d21d3c5 /lstate.c
parente15f1f2bb7a38a3c94519294d031e48508d65006 (diff)
downloadlua-github-6443185167c77adcc8552a3fee7edab7895db1a9.tar.gz
"Emergency" new version 5.4.6HEADv5.4.6master
'lua_resetthread' is back to its original signature, to avoid incompatibilities in the ABI between releases of the same version. New function 'lua_closethread' added with the "correct" signature.
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/lstate.c b/lstate.c
index 1fbefb4b..1e925e5a 100644
--- a/lstate.c
+++ b/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;