MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / lua_rawgetp

Function lua_rawgetp

third-party/lua-5.2.4/src/lapi.c:660–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

index2addrFunction · 0.70
luaH_getFunction · 0.70

Tested by

no test coverage detected