MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / lua_rawgetp

Function lua_rawgetp

source/extern/lua/lapi.c:670–681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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