mbed library sources
Dependents: Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more
Superseded
This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.
Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.
If you are looking for a stable and tested release, please import one of the official mbed library releases:
Import librarymbed
The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Diff: api/error.h
- Revision:
- 140:ca60b7a31055
- Parent:
- 25:002053b42e66
- Child:
- 228:85a676113daa
diff -r e3413eddde57 -r ca60b7a31055 api/error.h --- 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