changes to communication
Fork of XBeeLib by
Diff: Utils/Debug.h
- Revision:
- 2:2ee1b6d51df2
- Parent:
- 0:fcaad0dfa051
- Child:
- 4:629712865107
diff -r 794d1d3e4a08 -r 2ee1b6d51df2 Utils/Debug.h --- 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