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

Function lua_tothread

engine/lua/src/lua/lapi.c:395–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393
394
395LUA_API lua_State *lua_tothread (lua_State *L, int idx) {
396 StkId o = index2adr(L, idx);
397 return (!ttisthread(o)) ? NULL : thvalue(o);
398}
399
400
401LUA_API const void *lua_topointer (lua_State *L, int idx) {

Callers 8

GetLuaThreadFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
luaB_costatusFunction · 0.85
luaB_coresumeFunction · 0.85
luaB_auxwrapFunction · 0.85
getthreadFunction · 0.85

Calls 1

index2adrFunction · 0.85

Tested by 2

TEST_FFunction · 0.68
TEST_FFunction · 0.68