summaryrefslogtreecommitdiffhomepage
path: root/main-window/mixins.hpp
blob: b85e6498edffebb0849f3af3dbeba9b82cb51e01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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;             \
    }