I do this through #define and #ifdef statements with a common header file included in all my source files - a simplistic approach when the IDE does not directly support this feature. The header file carries the release/debug definitions and the source code has snippets such as:
In the header file:
#define DEBUG 1 // '1' will include the #ifdef code
I've not tried it, but perhaps #import works? That should only include things once.... It's objective-c so it'll depend if it's supported in the Keil compiler.
Cheers,
James.
Important Information for this Arm website
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.
Access Warning
You do not have the correct permissions to perform this operation.
Hi.
Is it possible to have different build configurations such as a debug and release build configurations?
Debug output for example could be sent to the serial port but this would not be required for mature code.
Regards.
Martin