Is there a way to do check for numerical equality in macros?
I want to do something like
#define choice 3 #if choice == 3 .... #endif #if choice
Indeed that should work. See http://gcc.gnu.org/onlinedocs/cpp/If.html#If
That reference is accurate, but written in "standards format": abstractly without examples.