is there a way to test the value of macro #define ? The classic technique is to test whetehr something is defined for not:
#define debug #ifdef debug serial.print(x); #endif
what I would like to do is more like :
#define debug_level 2 #ifdef debug _level == 2 serial.print(x); #endif
I have searched and not been able to find any solution but neither have I found anywhere where someone asked and was told it was not possible, so many be I'm just not using the right words or something.
It seems too obvious and useful, I'd be surprised if does not exist but I can't see how to do it nor can I find a solution.
Could someone tell me if this simply not possible or if there is a trick?