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

Function lua_touserdata

third-party/lua-5.2.4/src/lapi.c:427–434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

425
426
427LUA_API void *lua_touserdata (lua_State *L, int idx) {
428 StkId o = index2addr(L, idx);
429 switch (ttypenv(o)) {
430 case LUA_TUSERDATA: return (rawuvalue(o) + 1);
431 case LUA_TLIGHTUSERDATA: return pvalue(o);
432 default: return NULL;
433 }
434}
435
436
437LUA_API lua_State *lua_tothread (lua_State *L, int idx) {

Callers 8

pmainFunction · 0.70
luaL_testudataFunction · 0.70
pmainFunction · 0.70
ll_checkclibFunction · 0.70
gctmFunction · 0.70
lua_topointerFunction · 0.70
getiofileFunction · 0.70
io_readlineFunction · 0.70

Calls 1

index2addrFunction · 0.70

Tested by

no test coverage detected