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

Function lua_rawget

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

Source from the content-addressed store, hash-verified

647
648
649LUA_API int lua_rawget(lua_State *L, int idx) {
650 StkId t;
651 lua_lock(L);
652 t = index2addr(L, idx);
653 api_check(L, ttistable(t), "table expected");
654 setobj2s(L, L->top - 1, luaH_get(hvalue(t), L->top - 1));
655 lua_unlock(L);
656 return ttnov(L->top - 1);
657}
658
659
660LUA_API int lua_rawgeti(lua_State *L, int idx, lua_Integer n) {

Callers 7

checkfieldFunction · 0.85
luaL_getmetafieldFunction · 0.85
luaL_findtableFunction · 0.85
hookfFunction · 0.85
db_gethookFunction · 0.85
luaB_rawgetFunction · 0.85

Calls 2

index2addrFunction · 0.85
luaH_getFunction · 0.85

Tested by

no test coverage detected