Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: DigiLogger
Fork of XBeeLib by
Diff: Utils/Debug.h
- Revision:
- 2:2ee1b6d51df2
- Parent:
- 0:fcaad0dfa051
- Child:
- 4:629712865107
--- a/Utils/Debug.h Mon May 11 17:58:00 2015 +0200 +++ b/Utils/Debug.h Thu May 14 16:21:39 2015 +0200 @@ -26,11 +26,13 @@ #if defined(ENABLE_ASSERTIONS) #include "mbed.h" +#if !(defined assert) #define assert(expr) if (!(expr)) { \ digi_log(LogLevelNone, "Assertion failed: %s, file %s, line %d\n", \ #expr, __FILE__, __LINE__); \ mbed_die(); \ } +#endif #else #define assert(expr) #endif