diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-07-13 19:39:15 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-07-24 00:43:03 +0200 |
commit | 1cac120c0b6b460899add3546d013b628d6b54bc (patch) | |
tree | 45362a76b8b47e310b13a679004b1f9936ff3a87 /main-window/mixins.hpp | |
parent | 3faf71a4b51c3f972593d1df8f649a4a100226ac (diff) |
WIP
Diffstat (limited to 'main-window/mixins.hpp')
-rw-r--r-- | main-window/mixins.hpp | 13 |
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; \ + } |