Inactive code highlight in xTIMEcomposer

If you have a simple question and just want an answer.
Post Reply
ffomich
Experienced Member
Posts: 119
Joined: Mon Sep 15, 2014 1:32 pm

Inactive code highlight in xTIMEcomposer

Post by ffomich »

Hello,

I use xTIMEcomposer Community_13.2.2 (build 13345, Mar-23-2015) . This IDE has feature to analyze #define and can highlight code block between #ifdef - #endif.

Example from USB-Audio-2.0-Device-Software_6.12.5, project app_usb_aud_l2:

------------------------------------

file devicedefines.h:

#include "customdefines.h"

some #defines

------------------------------------

file mixer.xc:

#include "devicedefines.h"

#ifdef MIXER

code

#endif // MIXER

------------------------------------

1. Add #define MIXER 1 to mixer.xc directly before #ifdef MIXER.

Code is active.

2. Add #define MIXER 1 to devicedefines.h

Code is active.

3. Add #define MIXER 1 to customdefines.h

Code is INACTIVE.

4. Add #define MIXER 1 in project Makefile only in following manner:

XCC_FLAGS = $(BUILD_FLAGS) -DMIXER=1

Code is INACTIVE.

 

Questions:

What is the depth of  #define parsing from included files?

How can I configure IDE to highlight code in case 3?

How can I configure IDE to highlight code in case 4?

 

 

 



Post Reply