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: EEPROMWrite Full-Project
Fork of mbed-src by
Diff: api/error.h
- Revision:
- 140:ca60b7a31055
- Parent:
- 25:002053b42e66
- Child:
- 228:85a676113daa
--- a/api/error.h Thu Mar 27 09:45:07 2014 +0000
+++ b/api/error.h Tue Apr 01 10:00:07 2014 +0100
@@ -53,14 +53,16 @@
* #endcode
*/
-#include <stdlib.h>
-#include "device.h"
+#include "toolchain.h"
-#if DEVICE_STDIO_MESSAGES
- #include <stdio.h>
- #define error(...) (fprintf(stderr, __VA_ARGS__), exit(1))
-#else
- #define error(...) (exit(1))
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void error(const char* format, ...);
+
+#ifdef __cplusplus
+}
#endif
#endif
