--- a/src/macros.h Sat Feb 13 04:14:43 2016 +0200 +++ b/src/macros.h Sun Feb 14 03:19:28 2016 +0200 @@ -66,6 +66,11 @@ #define ConfigOption(...) +#define DEFINE_FLAG_ACCESS_METHODS \ + bool checkFlag(Flag flag) const { return !!(m_flags & flag); } \ + void setFlag(Flag flag) { m_flags |= flag; } \ + void unsetFlag(Flag flag) { m_flags &= ~flag; } + // once-statement struct OnceGuard {