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

Function lua_touserdata

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

Source from the content-addressed store, hash-verified

411
412
413LUA_API void *lua_touserdata (lua_State *L, int idx) {
414 StkId o = index2addr(L, idx);
415 switch (ttnov(o)) {
416 case LUA_TUSERDATA: return getudatamem(uvalue(o));
417 case LUA_TLIGHTUSERDATA: return pvalue(o);
418 default: return NULL;
419 }
420}
421
422
423LUA_API lua_State *lua_tothread (lua_State *L, int idx) {

Callers 9

pmainFunction · 0.85
gmatch_auxFunction · 0.85
luaL_testudataFunction · 0.85
resizeboxFunction · 0.85
pmainFunction · 0.85
checkclibFunction · 0.85
gctmFunction · 0.85
getiofileFunction · 0.85
io_readlineFunction · 0.85

Calls 2

index2addrFunction · 0.85
pvalueFunction · 0.85

Tested by

no test coverage detected