MCPcopy Create free account
hub / github.com/Tencent/xLua / lua_rawgetp

Function lua_rawgetp

WebGLPlugins/lapi.c:669–680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

667
668
669LUA_API int lua_rawgetp (lua_State *L, int idx, const void *p) {
670 StkId t;
671 TValue k;
672 lua_lock(L);
673 t = index2addr(L, idx);
674 api_check(L, ttistable(t), "table expected");
675 setpvalue(&k, cast(void *, p));
676 setobj2s(L, L->top, luaH_get(hvalue(t), &k));
677 api_incr_top(L);
678 lua_unlock(L);
679 return ttnov(L->top - 1);
680}
681
682
683LUA_API void lua_createtable (lua_State *L, int narray, int nrec) {

Callers 5

checkclibFunction · 0.70
addtoclibFunction · 0.70
hookfFunction · 0.70
db_sethookFunction · 0.70
db_gethookFunction · 0.70

Calls 2

index2addrFunction · 0.85
luaH_getFunction · 0.85

Tested by

no test coverage detected