Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CppCXY/EmmyLuaCodeStyle
/ lua_tothread
Function
lua_tothread
3rd/lua-5.4.3/src/lapi.c:456–459 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
454
455
456
LUA_API lua_State *lua_tothread (lua_State *L, int idx) {
457
const TValue *o = index2value(L, idx);
458
return (!ttisthread(o)) ? NULL : thvalue(o);
459
}
460
461
462
/*
Callers
3
getco
Function · 0.85
luaB_auxwrap
Function · 0.85
getthread
Function · 0.85
Calls
1
index2value
Function · 0.85
Tested by
no test coverage detected