I have a symbol #defined in the project settings. But code inside a #ifdef block using that symbol is colored grey to indicate it would not be compiled.
#ifdef someSymbol
#include "file1.h" #include "file2.h"
....
#endif
(sorry, had to use Teal, since Grey is not a forum color...)
Any ideas what can cause this? May be a relatively recent thing as I thought older versions were working fine, but can't confirm.
We're not using property sheets or anything else funky. I've double-checked property settings for the currently active config to verify that the define is there.
This coloring is done by Visual Studio. It was introduced in Visual Studio 2005. You may also upgraded Visual Studio at some point. This gray-out works even without Visual Assist.