Working on preprocessor errors and warnings I discovered the following:
When using
#define TEST 4
#ifdef TEST
#error "Wrong Test"
#endif
It will show the error during compilation, however using
#define TEST 4
#if (TEST==3)
#error "Wrong Test"
#endif
Will still show the error, which is not expected. Changing #error
directive with #warning
it all works as expected.
Can somebody explain how to work around this problem since, in our compilation process we halt on errors and not on warnings.