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?
Inactive code highlight in xTIMEcomposer
-
- Experienced Member
- Posts: 119
- Joined: Mon Sep 15, 2014 1:32 pm