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

Function SetField

library/include/LuaTools.h:345–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343 }
344
345 template<class T> inline void SetField(lua_State *L, T val, int idx, const char *name) {
346 if (idx < 0) idx = lua_absindex(L, idx);
347 Push(L, val); lua_setfield(L, idx, name);
348 }
349
350 DFHACK_EXPORT void PushInterfaceKeys(lua_State *L, const std::set<df::interface_key> &keys);
351

Callers 6

push_count_historyFunction · 0.85
push_constraintFunction · 0.85
projPathMetricsFunction · 0.85
proposeUnitHitsFunction · 0.85
autobutcher_getSettingsFunction · 0.85
autobutcher_getWatchListFunction · 0.85

Calls 3

lua_absindexFunction · 0.85
PushFunction · 0.85
lua_setfieldFunction · 0.85

Tested by

no test coverage detected