MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / touserdata

Function touserdata

lib/lua/src/lapi.c:447–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445
446
447l_sinline void *touserdata (const TValue *o) {
448 switch (ttype(o)) {
449 case LUA_TUSERDATA: return getudatamem(uvalue(o));
450 case LUA_TLIGHTUSERDATA: return pvalue(o);
451 default: return NULL;
452 }
453}
454
455
456LUA_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