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

Function cleanup_state

plugins/workflow.cpp:421–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419}
420
421static void cleanup_state(color_ostream &out)
422{
423 config = PersistentDataItem();
424
425 stop_protect(out);
426
427 for (size_t i = 0; i < constraints.size(); i++)
428 delete constraints[i];
429 constraints.clear();
430}
431
432static void check_lost_jobs(color_ostream &out, int ticks);
433static ItemConstraint *get_constraint(color_ostream &out, const std::string &str, PersistentDataItem *cfg = NULL, bool create = true);

Calls 4

PersistentDataItemFunction · 0.85
stop_protectFunction · 0.85
sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected