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

Function TableInsert

library/include/LuaTools.h:396–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394
395 template <typename T_Key, typename T_Value>
396 inline void TableInsert(lua_State *state, const T_Key &key, const T_Value &value) {
397 Lua::Push(state, key);
398 Lua::Push(state, value);
399 lua_settable(state, -3);
400 }
401
402 template<typename T>
403 void PushVector(lua_State *state, const T &pvec, bool addn = false)

Callers 5

PushFieldInfoSubTableFunction · 0.85
gui_getDwarfmodeViewDimsFunction · 0.85
units_getStressCutoffsFunction · 0.85

Calls 2

PushFunction · 0.85
lua_settableFunction · 0.85

Tested by

no test coverage detected