MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / lua_rawgetp

Function lua_rawgetp

ThirdParty/lua/lua/lapi.c:650–661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

648
649
650LUA_API int lua_rawgetp (lua_State *L, int idx, const void *p) {
651 StkId t;
652 TValue k;
653 lua_lock(L);
654 t = index2addr(L, idx);
655 api_check(ttistable(t), "table expected");
656 setpvalue(&k, cast(void *, p));
657 setobj2s(L, L->top, luaH_get(hvalue(t), &k));
658 api_incr_top(L);
659 lua_unlock(L);
660 return ttnov(L->top - 1);
661}
662
663
664LUA_API void lua_createtable (lua_State *L, int narray, int nrec) {

Callers 5

checkclibFunction · 0.85
addtoclibFunction · 0.85
hookfFunction · 0.85
db_sethookFunction · 0.85
db_gethookFunction · 0.85

Calls 2

index2addrFunction · 0.85
luaH_getFunction · 0.85

Tested by

no test coverage detected