Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/defold/defold
/ lua_tothread
Function
lua_tothread
engine/lua/src/lua/lapi.c:395–398 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
393
394
395
LUA_API lua_State *lua_tothread (lua_State *L, int idx) {
396
StkId o = index2adr(L, idx);
397
return (!ttisthread(o)) ? NULL : thvalue(o);
398
}
399
400
401
LUA_API const void *lua_topointer (lua_State *L, int idx) {
Callers
8
Sys_SetDebuggerLightweightHook
Function · 0.85
GetLuaThread
Function · 0.85
TEST_F
Function · 0.85
TEST_F
Function · 0.85
luaB_costatus
Function · 0.85
luaB_coresume
Function · 0.85
luaB_auxwrap
Function · 0.85
getthread
Function · 0.85
Calls
1
index2adr
Function · 0.85
Tested by
2
TEST_F
Function · 0.68
TEST_F
Function · 0.68