Inactive code highlight does not work in *.h file [message #762069] |
Wed, 07 December 2011 14:05 |
Missing name Missing name Messages: 7 Registered: December 2011 |
Junior Member |
|
|
Hi all,
I am using Eclipse Platform 3.7.0 Indigo. I use Eclipse only as Editor, use
make separately, (Green Hills compiler for MIPS).
I am using some of the Defines that are used in make file to use the
Inactive Code highlight feature. I add the defines in:
Project->Properties->C/C++ General -> Paths and Symbols -> Symbols -> GNU C-> Add
As example, I have a define in make file as "-DCFG_FUNC_ON",
I add in the Symbol->Add->Name : CFG_FUNC_ON (Value empty).
Now, in a *.c file I have this:
#ifdef CFG_FUNC_ON
...some Code, which Eclipse shows as ACTIVE
#endif
in a *.h file, I have this:
#ifdef CFG_FUNC_ON
...some Code, which Eclipse shows as INACTIVE, as Grey colored.
#endif
Why doesnt Eclipse show the code Active in header files ? What do I need to do ?
# If I add in one of my header files the same define as
#define CFG_FUNC_ON
then Eclipse shows the code both in *.c and *.h file as ACTIVE.
Thank you.
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03149 seconds