aboutsummaryrefslogtreecommitdiff
path: root/manual
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 /manual
parente15f1f2bb7a38a3c94519294d031e48508d65006 (diff)
downloadlua-5.4.6.tar.gz
lua-5.4.6.tar.bz2
lua-5.4.6.zip
"Emergency" new version 5.4.6v5.4.6
'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 'manual')
-rw-r--r--manual/manual.of40
1 files changed, 25 insertions, 15 deletions
diff --git a/manual/manual.of b/manual/manual.of
index ac1d7e60..f8d8ddd4 100644
--- a/manual/manual.of
+++ b/manual/manual.of
@@ -3167,6 +3167,27 @@ when called through this function.
3167 3167
3168} 3168}
3169 3169
3170@APIEntry{int lua_closethread (lua_State *L, lua_State *from);|
3171@apii{0,?,-}
3172
3173Resets a thread, cleaning its call stack and closing all pending
3174to-be-closed variables.
3175Returns a status code:
3176@Lid{LUA_OK} for no errors in the thread
3177(either the original error that stopped the thread or
3178errors in closing methods),
3179or an error status otherwise.
3180In case of error,
3181leaves the error object on the top of the stack.
3182
3183The parameter @id{from} represents the coroutine that is resetting @id{L}.
3184If there is no such coroutine,
3185this parameter can be @id{NULL}.
3186
3187(This function was introduced in @N{release 5.4.6}.)
3188
3189}
3190
3170@APIEntry{int lua_compare (lua_State *L, int index1, int index2, int op);| 3191@APIEntry{int lua_compare (lua_State *L, int index1, int index2, int op);|
3171@apii{0,0,e} 3192@apii{0,0,e}
3172 3193
@@ -4160,23 +4181,12 @@ and then pops the top element.
4160 4181
4161} 4182}
4162 4183
4163@APIEntry{int lua_resetthread (lua_State *L, lua_State *from);| 4184@APIEntry{int lua_resetthread (lua_State *L);|
4164@apii{0,?,-} 4185@apii{0,?,-}
4165 4186
4166Resets a thread, cleaning its call stack and closing all pending 4187This function is deprecated;
4167to-be-closed variables. 4188it is equivalent to @Lid{lua_closethread} with
4168Returns a status code: 4189@id{from} being @id{NULL}.
4169@Lid{LUA_OK} for no errors in the thread
4170(either the original error that stopped the thread or
4171errors in closing methods),
4172or an error status otherwise.
4173In case of error,
4174leaves the error object on the top of the stack.
4175
4176The parameter @id{from} represents the coroutine that is resetting @id{L}.
4177If there is no such coroutine,
4178this parameter can be @id{NULL}.
4179(This parameter was introduced in @N{release 5.4.5}.)
4180 4190
4181} 4191}
4182 4192