MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / lua_touserdata

Function lua_touserdata

third-party/lua-5.3.5/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.70
gmatch_auxFunction · 0.70
luaL_testudataFunction · 0.70
resizeboxFunction · 0.70
pmainFunction · 0.70
checkclibFunction · 0.70
gctmFunction · 0.70
getiofileFunction · 0.70
io_readlineFunction · 0.70

Calls 1

index2addrFunction · 0.70

Tested by

no test coverage detected