Loading...
 
Skip to main content

System Workbench for STM32


Detecting active build config at compile time

hi

ich have one projekt with 3 different targets

so i configured 3 different build configurations.

"TEST_A" : symbols: TEST_A
"TEST_B" : symbols: TEST_B ; FEATURE_B
"TEST_C" : symbols: TEST_B ; FEATURE_C

BUT:
In my sources i use preprocessor switches ( #ifdef / #endif ) to select the functions.

but i cant see any changes in highlighting in sources.
it seems it compiles correctly ... but you can't see the changes if you switch the active build configuration.

is there a "trick" ?


EDIT:

i can use i any headerfile #define TEST_A ...
but i think this is also possible with different configurations like "Debug/Release"

 
Collapse/expand modules below