MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / lua_touserdata

Function lua_touserdata

Source/Misc/lua/src/lua.c:2234–2241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2232
2233
2234LUA_API void *lua_touserdata (lua_State *L, int idx) {
2235StkId o = index2adr(L, idx);
2236switch (ttype(o)) {
2237case LUA_TUSERDATA: return (rawuvalue(o) + 1);
2238case LUA_TLIGHTUSERDATA: return pvalue(o);
2239default: return NULL;
2240}
2241}
2242
2243
2244LUA_API lua_State *lua_tothread (lua_State *L, int idx) {

Callers 15

luausb_generic_tostringFunction · 0.85
luausb_to_interfaceFunction · 0.85
luausb_is_interfaceFunction · 0.85
luausb_to_deviceFunction · 0.85

Calls 1

index2adrFunction · 0.85

Tested by

no test coverage detected