MCPcopy Create free account
hub / github.com/DFHack/dfhack / lua_rawgeti

Function lua_rawgeti

depends/lua/src/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

OpenMethod · 0.85
dfhack_timeout_activeFunction · 0.85
run_timersFunction · 0.85
meta_struct_nextFunction · 0.85
meta_union_nextFunction · 0.85
meta_fieldinfo_nextFunction · 0.85
dfhack_random_initFunction · 0.85
screen_doSimulateInputFunction · 0.85
meta_assignFunction · 0.85
wtype_inextFunction · 0.85
complex_enum_inextFunction · 0.85
pushargsFunction · 0.85

Calls 2

index2addrFunction · 0.85
luaH_getintFunction · 0.85

Tested by

no test coverage detected