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

Function lua_rawgetp

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

Source from the content-addressed store, hash-verified

655
656
657LUA_API void lua_rawgetp (lua_State *L, int idx, const void *p) {
658 StkId t;
659 TValue k;
660 lua_lock(L);
661 t = index2addr(L, idx);
662 api_check(L, ttistable(t), "table expected");
663 setpvalue(&k, cast(void *, p));
664 setobj2s(L, L->top, luaH_get(hvalue(t), &k));
665 api_incr_top(L);
666 lua_unlock(L);
667}
668
669
670LUA_API void lua_createtable (lua_State *L, int narray, int nrec) {

Callers

nothing calls this directly

Calls 2

index2addrFunction · 0.85
luaH_getFunction · 0.70

Tested by

no test coverage detected