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

Function lua_rawget

WebGLPlugins/lapi.c:646–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 13

luaL_getmetatableMethod · 0.85
luaB_rawgetFunction · 0.85
xlua_tocsobj_safeFunction · 0.85
cls_indexerFunction · 0.85
hookFunction · 0.85
call_ret_hookFunction · 0.85
is_cs_dataFunction · 0.85
luaL_getmetafieldFunction · 0.85
luaL_findtableFunction · 0.85
checkfieldFunction · 0.85
lua_rawgetpFunction · 0.85
hookfFunction · 0.85

Calls 2

index2addrFunction · 0.85
luaH_getFunction · 0.85

Tested by

no test coverage detected