Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SakuraEngine/SakuraEngine
/ lua_tothread
Function
lua_tothread
xrepo/packages/l/lua/port/lua/src/lapi.c:466–469 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
464
465
466
LUA_API lua_State *lua_tothread (lua_State *L, int idx) {
467
const TValue *o = index2value(L, idx);
468
return (!ttisthread(o)) ? NULL : thvalue(o);
469
}
470
471
472
/*
Callers
3
getco
Function · 0.70
luaB_auxwrap
Function · 0.70
getthread
Function · 0.70
Calls
1
index2value
Function · 0.85
Tested by
no test coverage detected