Skip to content

Instantly share code, notes, and snippets.

@nitrix
Created December 19, 2013 21:29
Show Gist options
  • Select an option

  • Save nitrix/8046540 to your computer and use it in GitHub Desktop.

Select an option

Save nitrix/8046540 to your computer and use it in GitHub Desktop.
/* Preprocessor */
#define MY_FUNC(my_param) MY_PARAM##my_param
#define MY_PARAM_yes true
#define MY_PARAM_no false
/* Code */
bool test = MY_FUNC(yes);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment