[Qt-creator] preprocessor syntax highlight
thorbjorn.lindeijer at nokia.com
thorbjorn.lindeijer at nokia.com
Tue Jan 20 10:53:26 CET 2009
________________________________________
Van: qt-creator-bounces at trolltech.com [qt-creator-bounces at trolltech.com] namens ext Roberto Raggi [roberto.raggi at trolltech.com]
Verzonden: dinsdag 20 januari 2009 10:08
Aan: qt-creator at trolltech.com
Onderwerp: Re: [Qt-creator] preprocessor syntax highlight
On Jan 20, 2009, at 9:56 AM, <thorbjorn.lindeijer at nokia.com> <thorbjorn.lindeijer at nokia.com
>> That isn't valid code though. In g++ 4.3.2, this yields "error: #if
>> with no expression". What you probably meant is
>>
>> #elif defined(TEST_ROOT)
>
>not true. It depends from the definition of TEST_ROOT. For instance,
>try this
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.
>The patch I posted fixed exactly this issue. I can't apply the patch
>right now, so please can you do it for me?
I'm not able to open your attachment (having to use the web interface at the moment, which sucks). If you email it to tlindeij at trolltech.com then I can apply it.
Regards,
Bjørn
More information about the Qt-creator-old
mailing list