cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
2,343 Views
Registered: ‎08-21-2013

#ifdef syntax highlighting not working if header is included indirectly

 

In SDK 2013.4, if I have a .cpp file with say:

 

#include "lwipopts.h" // LWIP_DHCP is defined as 1

#if LWIP_DHCP == 1
    int mscnt = 0;
#endif

 

the syntax highlighting is correct (ie white background as above). But if lwipopts.h is included indirectly via another include file, the #if ... #endif is grayed out. It compiles correctly, but the display is wrong which is very confusing.

0 Kudos
2 Replies
Highlighted
Xilinx Employee
Xilinx Employee
2,322 Views
Registered: ‎06-14-2012

Re: #ifdef syntax highlighting not working if header is included indirectly

Thanks for reporting this. Could you please email me the attached code?

We could file a CR for the display issue.

 

Hope this helps.

 

Regards

Sikta

0 Kudos
Highlighted
Explorer
Explorer
2,298 Views
Registered: ‎08-21-2013

Re: #ifdef syntax highlighting not working if header is included indirectly

Sikta,

 

I could zip a project and send it, but I'm not sure how to email you.

 

It looks like it has something to do with the indexer in 2013.4. I disabled the Indexer and then enabled it again, and the problem goes away.

 

Thanks,

Dave

0 Kudos