This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi there,
I'm currently having a small issue with using the predefined symbols. I'm currently working on a project that is a common code base for several devices and as such I have a collection of #if's around my code to select different branches for the different devices. Up until yesterday I had a had the following block of code in my project
#define device1 0 #define device2 1 #define device3 2 #define deviceBuild device2
I then have a load of check through out my code checking which device the deviceBuild is set to, and this works fine. Yesterday however I realized that I could make my life simpler by having 3 build configurations and having some predefined symbols that would change depending on which configuration I selected.
I have done this and it appear to work correctly when I build and run it however ccs doesn't appear to correctly indicate the inactive/active branches of code. I added the symbols in Properties -> C/C++ General -> Paths and Symbols -> Symbols, have I missed anything or is this an expected behaviour
I'm currently running CCS Version: 6.1.3.00033 on a Windows 7 machine with a Full licence.