Tool/software: Code Composer Studio
Example:
NDEBUG is predefined in debug configuration but not release.
In foo.c
#ifdeg NDEBUG
blah blah
#endif
will be grayed out in release configuration but not in debug.
In foo.h it's grayed out in both configurations.