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

Function lua_rawgeti

WebGLPlugins/lapi.c:657–666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

655
656
657LUA_API int lua_rawgeti (lua_State *L, int idx, lua_Integer n) {
658 StkId t;
659 lua_lock(L);
660 t = index2addr(L, idx);
661 api_check(L, ttistable(t), "table expected");
662 setobj2s(L, L->top, luaH_getint(hvalue(t), n));
663 api_incr_top(L);
664 lua_unlock(L);
665 return ttnov(L->top - 1);
666}
667
668
669LUA_API int lua_rawgetp (lua_State *L, int idx, const void *p) {

Callers 15

pushargsFunction · 0.85
xlua_rawgetiFunction · 0.85
xlua_ref_indirectFunction · 0.85
xlua_getref_indirectFunction · 0.85
xlua_tryget_cachedudFunction · 0.85
cacheudFunction · 0.85
xlua_pushcsobjFunction · 0.85
load_error_funcFunction · 0.85
pcall_prepareFunction · 0.85
xlua_pushstructFunction · 0.85
xlua_pushcstableFunction · 0.85
xlua_newstructFunction · 0.85

Calls 2

index2addrFunction · 0.85
luaH_getintFunction · 0.85

Tested by

no test coverage detected