MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / lua_tothread

Function lua_tothread

Source/Misc/lua/src/lua.c:2244–2247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2242
2243
2244LUA_API lua_State *lua_tothread (lua_State *L, int idx) {
2245StkId o = index2adr(L, idx);
2246return (!ttisthread(o)) ? NULL : thvalue(o);
2247}
2248
2249
2250LUA_API const void *lua_topointer (lua_State *L, int idx) {

Callers 4

luaB_costatusFunction · 0.85
luaB_coresumeFunction · 0.85
luaB_auxwrapFunction · 0.85
getthreadFunction · 0.85

Calls 1

index2adrFunction · 0.85

Tested by

no test coverage detected