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

Function lua_tothread

third-party/lua-5.2.4/src/lapi.c:437–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435
436
437LUA_API lua_State *lua_tothread (lua_State *L, int idx) {
438 StkId o = index2addr(L, idx);
439 return (!ttisthread(o)) ? NULL : thvalue(o);
440}
441
442
443LUA_API const void *lua_topointer (lua_State *L, int idx) {

Callers 4

luaB_coresumeFunction · 0.70
luaB_auxwrapFunction · 0.70
luaB_costatusFunction · 0.70
getthreadFunction · 0.70

Calls 1

index2addrFunction · 0.70

Tested by

no test coverage detected