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

Function lua_rawget

depends/lua/src/lapi.c:647–655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 15

PushModuleMethod · 0.85
PushModulePublicMethod · 0.85
dfhack_event_indexFunction · 0.85
dfhack_event_newindexFunction · 0.85
get_metafieldFunction · 0.85
cur_iter_indexFunction · 0.85
iter_idx_to_nameFunction · 0.85
dfhack_pen_indexFunction · 0.85
LookupInTableFunction · 0.85
LookupTypeInfoMethod · 0.85
is_valid_metatableFunction · 0.85
meta_assignFunction · 0.85

Calls 2

index2addrFunction · 0.85
luaH_getFunction · 0.85

Tested by

no test coverage detected