MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / lua_rawgetp

Function lua_rawgetp

src/Chain/libraries/glua/lapi.cpp:672–683  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

670
671
672LUA_API int lua_rawgetp(lua_State *L, int idx, const void *p) {
673 StkId t;
674 TValue k;
675 lua_lock(L);
676 t = index2addr(L, idx);
677 api_check(L, ttistable(t), "table expected");
678 setpvalue(&k, lua_cast(void *, p));
679 setobj2s(L, L->top, luaH_get(hvalue(t), &k));
680 api_incr_top(L);
681 lua_unlock(L);
682 return ttnov(L->top - 1);
683}
684
685
686LUA_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