|"#if defined(xx)" code highlight [message #1400615]
||Mon, 14 July 2014 13:09
| Giuliano Favro
Registered: July 2014
I have a little question about #define and code highlight.
In a project I have some #define in header files, the header files can be included hierarchically in other heder, finally included in the c file.
when I try the following code:
#if defined(ddf) && (ddf != 0)
even if the "ddf" is defined somewhere in "myinclude.h" the code under the if branch is greyed and under the else branch are displayed as active.
If I compile the source code the code under #if branch is correctly compiled.
Instead if the define is declared in the project options the if tree is correctly displayed.
How i can do for correcltly display the active code?
Powered by FUDForum
. Page generated in 0.06920 seconds