since we overload flags in curious ways it's important to check that the
flag is set to the thing we check for, not just set.
bool ykp_get_tktflag_ ## type(YKP_CONFIG *cfg) \
{ \
if (cfg) { \
- if(cfg->ykcore_config.tktFlags & TKTFLAG_ ## type) \
+ if((cfg->ykcore_config.tktFlags & TKTFLAG_ ## type) == TKTFLAG_ ## type) \
return true; \
else \
return false; \
bool ykp_get_cfgflag_ ## type(YKP_CONFIG *cfg) \
{ \
if (cfg) { \
- if(cfg->ykcore_config.cfgFlags & CFGFLAG_ ## type) \
+ if((cfg->ykcore_config.cfgFlags & CFGFLAG_ ## type) == CFGFLAG_ ## type) \
return true; \
else \
return false; \
bool ykp_get_extflag_ ## type(YKP_CONFIG *cfg) \
{ \
if (cfg) { \
- if(cfg->ykcore_config.extFlags & EXTFLAG_ ## type) \
+ if((cfg->ykcore_config.extFlags & EXTFLAG_ ## type) == EXTFLAG_ ## type) \
return true; \
else \
return false; \