MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / lua_tothread

Function lua_tothread

src/Chain/libraries/glua/lapi.cpp:426–429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

getcoFunction · 0.85
luaB_auxwrapFunction · 0.85
getthreadFunction · 0.85

Calls 1

index2addrFunction · 0.85

Tested by

no test coverage detected