diff options
Diffstat (limited to 'manual/manual.of')
-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 | ||