Problem with Preprocessor Folding
Posted: Wed Sep 08, 2010 11:27 am
Hi,
I'm using 2.7.0.4375 on W2k and found the following problem
When you fold the 1st ifdef, it is folded until the 2nd endif, instead of the 1st one.
Am I doing sth wrong?
Thx
I'm using 2.7.0.4375 on W2k and found the following problem
Code: Select all
void test(void)
{
#ifdef SOME_COMPILE_SWITCH
{
unsigned var = SOME_MACRO;
#endif
SomeFunctionCall()
#ifdef SOME_COMPILER_SWITCH
var = SOME_READ_FROM_HA;
}
#endif
}
Am I doing sth wrong?
Thx