Skip to content

Instantly share code, notes, and snippets.

@Cylix
Created October 19, 2020 06:01
Show Gist options
  • Save Cylix/7e2ba226bf5287526dd2be4eaca26c00 to your computer and use it in GitHub Desktop.
Save Cylix/7e2ba226bf5287526dd2be4eaca26c00 to your computer and use it in GitHub Desktop.
Reflection in C++14 - Macros #3
//! 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