From: Markus S. <mar...@so...> - 2011-02-24 10:58:59
|
please help! I want to use different build configurations in eclipse regarding debugging in proteus using ifndef and ifdef i want to switch includes and code like this: #ifndef proteus #include "microwave_oven.h" #endif //there is no spice model for an microwave oven :) //that's why i use that other library for simulating that output.. #ifdef proteus #include "microwave_oven_simulated.h" #endif //gives me nice warm maccaroni and cheese everytime I tried now to define that macro -proteus- in tool settings -definitions in the configuration Debug. then after changing to the configuration Debug nothing happens. the ifndef statements are marked as active and the build stays the same. so now where do i define that macro in my build config? i could write it directly in the code but isn't it supposed to work with build configs? yours markus |