Other Parts Discussed in Thread: MSP430F2618, MSP430F1611
I have a project part of which intended to compile on multiple platforms. I have custom platform.h file, where I define my own platform macro names, something like
#if defined(WIN32) || defined(_WINDOWS)
#define _WIN32_ 1
#define _TMS320C62_ 0
#define _TMS320C6X_ 0
#define _TMS320C64X_ 0
#elif defined(_TMS320C6X)
#define _WIN32_ 0
#define _TMS320C6X_ 1
#if defined(_TMS320C6200)
#define _TMS320C62_ 1
#endif
#if defined(_TMS320C6400)
#define _TMS320C64X_ 1
#endif
#else
#define _WIN32_ 0
#define _TMS320C62_ 0
#define _TMS320C6X_ 0
#define _TMS320C64X_ 0
#endif
If I edit this code in CCS 5.2 editor, code covered by _TMS320C64X_ is highlighted as inactive. Moreover, is I hover mouse pointer over that macro name, it is shown to have 0 value. If I go to its definition, I fall to the last "else" section of above code. As code compiles correctly, I think there is no problem with CGT itself, its rather editor presentation problem. Any ideas how to fix it?
Thanks.