6 #ifndef CPPIPC_REGISTRATION_MACROS_HPP 7 #define CPPIPC_REGISTRATION_MACROS_HPP 69 #define REGISTRATION_BEGIN(name) \ 70 static inline std::string __get_type_name__() { \ 73 template <typename Registry> \ 74 static inline void __register__(Registry& reg) { 76 #define XSTRINGIFY(s) STRINGIFY(s) 77 #define STRINGIFY(s) #s 88 #define REGISTER(FN) { \ 89 reg.register_function(&FN, std::string(XSTRINGIFY(FN))); \ 94 #define REGISTRATION_END } 96 #endif //CPPIPC_REGISTRATION_MACROS_HPP