Some of the posts on this forum indicate that the pre-processor definition _DEBUG will be defined for debug builds. It looks it is not in CCSv5.3. Is anyone using this definition to distinguish between release and debug builds in code?
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.
Some of the posts on this forum indicate that the pre-processor definition _DEBUG will be defined for debug builds. It looks it is not in CCSv5.3. Is anyone using this definition to distinguish between release and debug builds in code?
It is not predefined by CCS. Some example projects from TI (like Controlsuite for C2000) may define such symbols as _DEBUG or _FLASH but it is not a predefined variable in CCS. To confirm which variables are defined by CCS, you can go to Project Properties->Build->Variables tab, check the box for "Show System variables" and that will show you the list of predefined variables.
However, you can always define your own symbols using the --define compiler option and use #ifdefs in your code to distingish between different build configurations.