MCPcopy Create free account
hub / github.com/F-Stack/f-stack / lua_touserdata

Function lua_touserdata

freebsd/contrib/openzfs/module/lua/lapi.c:424–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 9

luaL_testudataFunction · 0.70
lua_topointerFunction · 0.70
zcp_lua_to_nvlist_helperFunction · 0.50
zcp_lua_counthookFunction · 0.50
zcp_run_infoFunction · 0.50
zcp_synctask_wrapperFunction · 0.50
zcp_user_props_list_gcFunction · 0.50
zcp_user_props_iterFunction · 0.50
zcp_list_funcFunction · 0.50

Calls 1

index2addrFunction · 0.85

Tested by

no test coverage detected