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

Function isOptionEnabled

plugins/autolabor/autolabor.cpp:83–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81command_result autolabor (color_ostream &out, std::vector <std::string> & parameters);
82
83static bool isOptionEnabled(unsigned flag)
84{
85 return config.isValid() && (config.ival(0) & flag) != 0;
86}
87
88enum ConfigFlags {
89 CF_ENABLED = 1,

Callers 1

init_stateFunction · 0.70

Calls 2

ivalMethod · 0.80
isValidMethod · 0.45

Tested by

no test coverage detected