Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelkebe/c963c7478b7b55ad197f0665986870d4 to your computer and use it in GitHub Desktop.
Save michaelkebe/c963c7478b7b55ad197f0665986870d4 to your computer and use it in GitHub Desktop.
#undef _FOO1
#undef _FOO2
#undef _FOO2
#undef _BAR1
#undef _BAR2
#undef _BAR3
#define _FOO3 42
//comment out this line or give it a value to make the preprocesser happy
#define _BAR1
#if (defined(_FOO1) || defined(_FOO2) || defined(_FOO3))
// not short circuiting... preprocesser tries to evaluate (_FOO1 && _BAR1)
#if ((defined(_FOO1) && (_FOO1 == _BAR1)) || \
(defined(_FOO2) && (_FOO2 == _BAR2)) || \
(defined(_FOO3) && (_FOO3 == BAR3)) )
#define SHA1DC_BIGENDIAN
#endif
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment