src/macros.h

changeset 1017
fc1c13db9618
parent 1014
f0a8ecb6a357
child 1033
32153a1dbb15
--- 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
 {

mercurial