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

Function setOptionEnabled

plugins/workflow.cpp:393–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

391}
392
393static void setOptionEnabled(ConfigFlags flag, bool on)
394{
395 if (!config.isValid())
396 return;
397
398 if (on)
399 config.ival(0) |= flag;
400 else
401 config.ival(0) &= ~flag;
402}
403
404/******************************
405 * STATE INITIALIZATION *

Callers 3

enable_pluginFunction · 0.70
workflow_cmdFunction · 0.70

Calls 2

ivalMethod · 0.80
isValidMethod · 0.45

Tested by

no test coverage detected