Created
October 19, 2020 06:01
-
-
Save Cylix/7e2ba226bf5287526dd2be4eaca26c00 to your computer and use it in GitHub Desktop.
Reflection in C++14 - Macros #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//! main macro who build the static variable | |
#define REGISTER_CLASS(type, functions) \ | |
static reflectable<type> \ | |
reflectable_##type(#type, BOOST_PP_SEQ_FOR_EACH_I( __REFLEX_MAKE_REGISTERABLE_FUNCTION, \ | |
type, \ | |
functions )); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment