MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / touserdata

Function touserdata

extlibs/lua/src/lapi.c:418–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416
417
418static void *touserdata (const TValue *o) {
419 switch (ttype(o)) {
420 case LUA_TUSERDATA: return getudatamem(uvalue(o));
421 case LUA_TLIGHTUSERDATA: return pvalue(o);
422 default: return NULL;
423 }
424}
425
426
427LUA_API void *lua_touserdata (lua_State *L, int idx) {

Callers 2

lua_touserdataFunction · 0.85
lua_topointerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected