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: cc3000_ping_demo_try_2
Fork of mbed by
Diff: error.h
- Revision:
- 82:6473597d706e
- Parent:
- 67:a9913a65894f
--- a/error.h Wed Mar 19 18:28:32 2014 +0000
+++ b/error.h Mon Apr 07 18:28:36 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
