MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / lua_tothread

Function lua_tothread

libraries/AP_Scripting/lua/src/lapi.c:423–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421
422
423LUA_API lua_State *lua_tothread (lua_State *L, int idx) {
424 StkId o = index2addr(L, idx);
425 return (!ttisthread(o)) ? NULL : thvalue(o);
426}
427
428
429LUA_API const void *lua_topointer (lua_State *L, int idx) {

Callers 3

getcoFunction · 0.85
luaB_auxwrapFunction · 0.85
getthreadFunction · 0.85

Calls 1

index2addrFunction · 0.85

Tested by

no test coverage detected