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

Function LookupInTable

library/LuaWrapper.cpp:99–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99static void LookupInTable(lua_State *state, LuaToken *tname)
100{
101 lua_rawgetp(state, LUA_REGISTRYINDEX, tname);
102 lua_swap(state);
103 lua_rawget(state, -2);
104 lua_remove(state, -2);
105}
106
107/**
108 * Look up the key on the stack in DFHACK_TYPETABLE;

Callers 8

meta_primitive_indexFunction · 0.85
build_metatableMethod · 0.85
push_adhoc_pointerMethod · 0.85
LookupTypeInfoMethod · 0.85
is_valid_metatableFunction · 0.85
IsDFObjectMethod · 0.85
MakeMetatableMethod · 0.85
AttachEnumKeysMethod · 0.85

Calls 3

lua_rawgetpFunction · 0.85
lua_swapFunction · 0.85
lua_rawgetFunction · 0.85

Tested by

no test coverage detected