diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-05-02 16:41:43 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-05-02 16:41:43 -0300 |
| commit | 6443185167c77adcc8552a3fee7edab7895db1a9 (patch) | |
| tree | 20add1421687313b7dcb4b9481771ed60d21d3c5 /manual | |
| parent | e15f1f2bb7a38a3c94519294d031e48508d65006 (diff) | |
| download | lua-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.of | 40 |
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 | |||
| 3173 | Resets a thread, cleaning its call stack and closing all pending | ||
| 3174 | to-be-closed variables. | ||
| 3175 | Returns a status code: | ||
| 3176 | @Lid{LUA_OK} for no errors in the thread | ||
| 3177 | (either the original error that stopped the thread or | ||
| 3178 | errors in closing methods), | ||
| 3179 | or an error status otherwise. | ||
| 3180 | In case of error, | ||
| 3181 | leaves the error object on the top of the stack. | ||
| 3182 | |||
| 3183 | The parameter @id{from} represents the coroutine that is resetting @id{L}. | ||
| 3184 | If there is no such coroutine, | ||
| 3185 | this 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 | ||
| 4166 | Resets a thread, cleaning its call stack and closing all pending | 4187 | This function is deprecated; |
| 4167 | to-be-closed variables. | 4188 | it is equivalent to @Lid{lua_closethread} with |
| 4168 | Returns 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 | ||
| 4171 | errors in closing methods), | ||
| 4172 | or an error status otherwise. | ||
| 4173 | In case of error, | ||
| 4174 | leaves the error object on the top of the stack. | ||
| 4175 | |||
| 4176 | The parameter @id{from} represents the coroutine that is resetting @id{L}. | ||
| 4177 | If there is no such coroutine, | ||
| 4178 | this parameter can be @id{NULL}. | ||
| 4179 | (This parameter was introduced in @N{release 5.4.5}.) | ||
| 4180 | 4190 | ||
| 4181 | } | 4191 | } |
| 4182 | 4192 | ||
