[Qt-creator] preprocessor syntax highlight
Roberto Raggi
roberto.raggi at trolltech.com
Tue Jan 20 10:08:40 CET 2009
On Jan 20, 2009, at 9:56 AM, <thorbjorn.lindeijer at nokia.com> <thorbjorn.lindeijer at nokia.com
> wrote:
> Paulo Jnkml wrote:
>> Hi,
>>
>> in the folowing code:
>>
>> #ifdef TEST_SOLVE
>> //gray from here
>>
>> #elif TEST_ROOT //also gray here???!!!
>> //gray here
>
> 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
#define TEST_ROOT 1
#ifdef TEST_SOLVE
aaaaa
#elif TEST_ROOT
bbbbb
#else
ccccc
#endif
The patch I posted fixed exactly this issue. I can't apply the patch
right now, so please can you do it for me?
ciao robe
More information about the Qt-creator-old
mailing list