Please note: We are aware of an issue affecting replies on the Arm Community forums, which may not be loading as expected.

We apologize for any inconvenience and appreciate your patience while we investigate and work to resolve the issue.

Thank you for your understanding.


This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

uVision4 gives a compile error when #define identifier used with comparison operator

Does anyone know why this doesn't work:

#define x 5;

...

if(state == x){...
}

Does anyone know why I can't do the above comparison?

Parents Reply Children