summaryrefslogtreecommitdiffhomepage
path: root/main-window/mixins.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'main-window/mixins.hpp')
-rw-r--r--main-window/mixins.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/main-window/mixins.hpp b/main-window/mixins.hpp
new file mode 100644
index 00000000..b85e6498
--- /dev/null
+++ b/main-window/mixins.hpp
@@ -0,0 +1,13 @@
+#pragma once
+
+#include "export.hpp"
+
+// XXX TODO add is_base_of and void_t stuff
+
+#define OTR_MIXIN_NS(name) \
+ mixins :: detail :: name
+
+#define OTR_DECLARE_MIXIN(name) \
+ namespace mixins { \
+ using name = :: OTR_MIXIN_NS(name) :: name; \
+ }