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.
Dependents: WizFi250_AP_HelloWorld
Fork of mbed-src by
Diff: common/assert.c
- Revision:
- 594:474d026f7d79
- Parent:
- 227:7bd0639b8911
diff -r 0e93a0f70f9d -r 474d026f7d79 common/assert.c
--- 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);
}
