rad  2.0.0
 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 // RAD_TRAIT_HPP