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

Function isOptionEnabled

plugins/autolabor/labormanager.cpp:307–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305static bool initialized = false;
306
307static bool isOptionEnabled(unsigned flag)
308{
309 return config.isValid() && (config.ival(0) & flag) != 0;
310}
311
312static void setOptionEnabled(ConfigFlags flag, bool on)
313{

Callers 2

init_stateFunction · 0.70
processMethod · 0.70

Calls 2

ivalMethod · 0.80
isValidMethod · 0.45

Tested by

no test coverage detected