MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / lua_tothread

Function lua_tothread

3rd/lua-5.4.3/src/lapi.c:456–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454
455
456LUA_API lua_State *lua_tothread (lua_State *L, int idx) {
457 const TValue *o = index2value(L, idx);
458 return (!ttisthread(o)) ? NULL : thvalue(o);
459}
460
461
462/*

Callers 3

getcoFunction · 0.85
luaB_auxwrapFunction · 0.85
getthreadFunction · 0.85

Calls 1

index2valueFunction · 0.85

Tested by

no test coverage detected