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

Function lua_rawgeti

source/extern/lua/lapi.c:658–667  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 15

luaL_refFunction · 0.85
luaL_unrefFunction · 0.85
gctmFunction · 0.85
findloaderFunction · 0.85
createMethod · 0.85
createContextMethod · 0.85
addImGuiMethod · 0.85
pcallWithTracebackMethod · 0.85
setContextRequireMethod · 0.85
createWrappedFunctionMethod · 0.85
createUserDataMethod · 0.85
getGlobalMethod · 0.85

Calls 2

index2addrFunction · 0.85
luaH_getintFunction · 0.85

Tested by

no test coverage detected