Skip to content

Instantly share code, notes, and snippets.

@chandlerc
Created August 13, 2012 01:36
Show Gist options
  • Save chandlerc/3336294 to your computer and use it in GitHub Desktop.
Save chandlerc/3336294 to your computer and use it in GitHub Desktop.
#define FOO BAZ
#define FOOBAR 1
#define BAZBAR 0
#define M(x) x ## BAR
#if M(FOO)
#error not pre-expanded
#else
#error pre-expanded
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment