MCPcopy Create free account
hub / github.com/TASEmulators/fceux / lua_touserdata

Function lua_touserdata

src/lua/src/lapi.c:385–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383
384
385LUA_API void *lua_touserdata (lua_State *L, int idx) {
386 StkId o = index2adr(L, idx);
387 switch (ttype(o)) {
388 case LUA_TUSERDATA: return (rawuvalue(o) + 1);
389 case LUA_TLIGHTUSERDATA: return pvalue(o);
390 default: return NULL;
391 }
392}
393
394
395LUA_API lua_State *lua_tothread (lua_State *L, int idx) {

Callers 13

savestate_gcFunction · 0.85
savestate_saveFunction · 0.85
savestate_persistFunction · 0.85
savestate_loadFunction · 0.85
pmainFunction · 0.85
luaL_checkudataFunction · 0.85
pmainFunction · 0.85
ll_registerFunction · 0.85
ll_requireFunction · 0.85
lua_topointerFunction · 0.85
io_typeFunction · 0.85
getiofileFunction · 0.85

Calls 1

index2adrFunction · 0.85

Tested by

no test coverage detected