summaryrefslogtreecommitdiff
path: root/src/feature_flag.hpp
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-06-21 21:17:20 +0200
committerBardur Arantsson <bardur@scientician.net>2016-06-21 21:17:20 +0200
commit3966bfb2f6836d13c1a93bfab1e9fa61ec4fff35 (patch)
tree589a331cab87e338882269d257048e6792f2c072 /src/feature_flag.hpp
parentebc402cfa4182a50f46ac2d56e3b74c5372eed84 (diff)
Rework FF1_* flags to flags_set<>
Diffstat (limited to 'src/feature_flag.hpp')
-rw-r--r--src/feature_flag.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/feature_flag.hpp b/src/feature_flag.hpp
new file mode 100644
index 00000000..09aa5b43
--- /dev/null
+++ b/src/feature_flag.hpp
@@ -0,0 +1,12 @@
+#pragma once
+
+#include "feature_flag_set.hpp"
+#include <boost/preprocessor/cat.hpp>
+
+//
+// Define flag set for each flag.
+//
+#define FF(tier, index, name) \
+ DECLARE_FLAG(feature_flag_set, BOOST_PP_CAT(FF_,name), tier, index)
+#include "feature_flag_list.hpp"
+#undef FF