Lancaster University's (short term!) clone of mbed-src for micro:bit. This is a copy of the github branch https://github.com/lancaster-university/mbed-classic
Fork of mbed-src by
Diff: common/assert.c
- Revision:
- 591:474d026f7d79
- Parent:
- 227:7bd0639b8911
--- a/common/assert.c Tue Jul 14 09:45:08 2015 +0100 +++ b/common/assert.c Wed Jul 15 08:15:08 2015 +0100 @@ -14,19 +14,9 @@ * limitations under the License. */ #include "mbed_assert.h" -#include "device.h" - -#if DEVICE_STDIO_MESSAGES -#include <stdio.h> -#endif - -#include <stdlib.h> -#include "mbed_interface.h" +#include "mbed_error.h" void mbed_assert_internal(const char *expr, const char *file, int line) { -#if DEVICE_STDIO_MESSAGES - fprintf(stderr, "mbed assertation failed: %s, file: %s, line %d \n", expr, file, line); -#endif - mbed_die(); + error("mbed assertation failed: %s, file: %s, line %d \n", expr, file, line); }