MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / lua_touserdata

Function lua_touserdata

deps/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 12

pmainFunction · 0.85
luaL_checkudataFunction · 0.85
json_fetch_configFunction · 0.85
json_destroy_configFunction · 0.85
json_append_dataFunction · 0.85
pmainFunction · 0.85
ll_registerFunction · 0.85
ll_requireFunction · 0.85
lua_topointerFunction · 0.85
io_typeFunction · 0.85
getiofileFunction · 0.85
io_readlineFunction · 0.85

Calls 1

index2adrFunction · 0.85

Tested by

no test coverage detected