MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / lua_touserdata

Function lua_touserdata

ThirdParty/lua/lua/lapi.c:410–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 7

CheckUserDataFunction · 0.85
luaL_testudataFunction · 0.85
checkclibFunction · 0.85
gctmFunction · 0.85
lua_topointerFunction · 0.85
getiofileFunction · 0.85
io_readlineFunction · 0.85

Calls 1

index2addrFunction · 0.85

Tested by

no test coverage detected