I know I can use the C preprocessor to conditionally compile something like:
#define USESPECIALFEATURE
#if defined USESPECIALFEATURE
usespecialfeature();
#endif
But I am wondering if I can do something like this:
#define USEDFEATURE 4
#if defined USEDFEATURE == 4
usefeature(4);
#endif
In other words, I want to use the preprocessor to check the value of a particular macro definition. This doesn't work when I tried it.