Comparing C macro with text value

Viewed 34

Is it possible in C to compare a macro with a text value, like this:

#if MACRO == val
    code;
#endif

I have attempted doing this but it hasn't worked so far. Is this at all possible, and if not, what is a good alternative?

0 Answers
Related