ifw  0.0.1-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Traits.hpp
Go to the documentation of this file.
1 
9 #ifndef RAD_TRAIT_HPP
10 #define RAD_TRAIT_HPP
11 
17 #define DECLARE_EVENT(name, type) \
18 struct name { \
19  static constexpr char const* id = #name;\
20  using payload_t = type; \
21 }
22 
28 #define DECLARE_VOID_EVENT(name) \
29 struct name { \
30  static constexpr char const* id = #name;\
31  using payload_t = void; \
32 }
33 
34 #endif // #ifndef RAD_TRAIT_HPP