LUA_TOTHREAD(3) | Library Functions Manual | LUA_TOTHREAD(3) |
lua_tothread
—
converts the value to a Lua thread, function indicator [-0,
+0, -]
#include
<lua.h>
lua_State *
lua_tothread
(lua_State
*L, int index);
lua_tothread
()
converts the value at the given acceptable index to a Lua thread
(represented as lua_State *). This value must be a thread; otherwise, the
function returns NULL
.
Returns Lua thread represented as lua_State* and returns
NULL
when value is not a thread.
Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, Lua 5.1 Reference Manual.
The lua_gethook
() manual page is based on
Lua Reference Manual 5.1 and was created by Sergey Bronnikov.
July 13, 2022 | Debian |