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

Function set_flag

plugins/stockpiles/StockpileSerializer.cpp:236–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236static void set_flag(color_ostream& out, const char* name, const vector<string>& filters, bool all, char val, bool enabled, bool& elem) {
237 if ((all || enabled) && matches_filter(out, filters, name)) {
238 DEBUG(log, out).print("setting {} to {}\n", name, val);
239 elem = val;
240 }
241}
242
243static void set_filter_elem(color_ostream& out, const char* subcat, const vector<string>& filters, char val,
244 const string& name, const string& id, char& elem) {

Callers 8

read_animalsMethod · 0.85
read_armorMethod · 0.85
read_clothMethod · 0.85
read_finished_goodsMethod · 0.85
read_foodMethod · 0.85
read_leatherMethod · 0.85
read_refuseMethod · 0.85
read_weaponsMethod · 0.85

Calls 2

matches_filterFunction · 0.85
printMethod · 0.45

Tested by

no test coverage detected