MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / lua_tothread

Function lua_tothread

third-party/lua-5.3.5/src/lapi.c:423–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421
422
423LUA_API lua_State *lua_tothread (lua_State *L, int idx) {
424 StkId o = index2addr(L, idx);
425 return (!ttisthread(o)) ? NULL : thvalue(o);
426}
427
428
429LUA_API const void *lua_topointer (lua_State *L, int idx) {

Callers 3

getcoFunction · 0.70
luaB_auxwrapFunction · 0.70
getthreadFunction · 0.70

Calls 1

index2addrFunction · 0.70

Tested by

no test coverage detected