Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Serial-Studio/Serial-Studio
/ lua_tothread
Function
lua_tothread
lib/lua/src/lapi.c:462–465 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
460
461
462
LUA_API lua_State *lua_tothread (lua_State *L, int idx) {
463
const TValue *o = index2value(L, idx);
464
return (!ttisthread(o)) ? NULL : thvalue(o);
465
}
466
467
468
/*
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