MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / lua_tothread

Function lua_tothread

xrepo/packages/l/lua/port/lua/src/lapi.c:466–469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

464
465
466LUA_API lua_State *lua_tothread (lua_State *L, int idx) {
467 const TValue *o = index2value(L, idx);
468 return (!ttisthread(o)) ? NULL : thvalue(o);
469}
470
471
472/*

Callers 3

getcoFunction · 0.70
luaB_auxwrapFunction · 0.70
getthreadFunction · 0.70

Calls 1

index2valueFunction · 0.85

Tested by

no test coverage detected