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

Function lua_tothread

third-party/lua-5.4.6/src/lapi.c:462–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460
461
462LUA_API lua_State *lua_tothread (lua_State *L, int idx) {
463 const TValue *o = index2value(L, idx);
464 return (!ttisthread(o)) ? NULL : thvalue(o);
465}
466
467
468/*

Callers 3

getcoFunction · 0.70
luaB_auxwrapFunction · 0.70
getthreadFunction · 0.70

Calls 1

index2valueFunction · 0.70

Tested by

no test coverage detected