[Qt-creator] preprocessor syntax highlight

Paulo Jnkml paulo.jnkml at gmail.com
Wed Jan 21 00:23:15 CET 2009


Hello,
> I know it depends on the definition, however if you define TEST_ROOT to 1, then the check "#ifdef TEST_SOLVE" is confusing since it would be true even if TEST_SOLVE is defined as 0, whereas the second check would be false of TEST_ROOT is defined as 0. That's not consistent, so I still think "#if defined(TEST_ROOT)" is what was meant here.
>   
You're completely right. That does not make sense. I did forget the 
!defined().
Yet the point was to show the bug and not to discuss the validity of code.
=D
Cheers




More information about the Qt-creator-old mailing list