lua_resetthread

Resets a thread

Cleaning its call stack and closing all pending to-be-closed variables.

extern (C) @nogc nothrow
int
lua_resetthread

Parameters

s lua_State*

Lua state

Return Value

Type: int

LUA_OK for no errors in closing methods, or an error status otherwise.

Note: In case of error, leaves the error object on the top of the stack.

See Also

Meta