Hi !
I’m trying to create lines code to manage potential error with some “#define variable”.
In fact, I’ve 3 variables, taking either 0 or 1 as entry. If one of them is at 1, the 2 other have to be at 0.
Here is my code :
#define Variable1 1
#define Variable2 0
#define Variable3 0
#if Variable1 == 1
#define Variable2 0
#define Variable3 0
#endif
#if Variable1 == 0
#if Variable2 == 0
#define Variable3 1
#endif
#if Variable2 == 1
#define Variable3 0
#endif
#endif
The error (that I understand well !) is that I can’t define 1 variable twice.
So, what other solution would I have ?
Thank you for the help !
Lauranne