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

Function touserdata

third-party/lua-5.5.0/src/lapi.c:464–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

462
463
464l_sinline void *touserdata (const TValue *o) {
465 switch (ttype(o)) {
466 case LUA_TUSERDATA: return getudatamem(uvalue(o));
467 case LUA_TLIGHTUSERDATA: return pvalue(o);
468 default: return NULL;
469 }
470}
471
472
473LUA_API void *lua_touserdata (lua_State *L, int idx) {

Callers 2

lua_touserdataFunction · 0.70
lua_topointerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected