MCPcopy Create free account
hub / github.com/DFHack/dfhack / lua_tothread

Function lua_tothread

depends/lua/src/lapi.c:423–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 7

dfhack_coresumeFunction · 0.85
dfhack_saferesumeFunction · 0.85
dfhack_coauxwrapFunction · 0.85
SafeResumeMethod · 0.85
getcoFunction · 0.85
luaB_auxwrapFunction · 0.85
getthreadFunction · 0.85

Calls 1

index2addrFunction · 0.85

Tested by

no test coverage detected