The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
Diff: platform/mbed_error.h
- Revision:
- 145:64910690c574
- Parent:
- 128:9bcdf88f62b0
--- a/platform/mbed_error.h Thu Jun 08 14:53:05 2017 +0100 +++ b/platform/mbed_error.h Wed Jun 21 17:31:38 2017 +0100 @@ -19,8 +19,13 @@ #ifndef MBED_ERROR_H #define MBED_ERROR_H + + /** To generate a fatal compile-time error, you can use the pre-processor #error directive. * + * @param format C string that contains data stream to be printed. + * Code snippets below show valid format. + * * @code * #error "That shouldn't have happened!" * @endcode @@ -53,13 +58,14 @@ * if(x >= 5) { * error("expected x to be less than 5, but got %d", x); * } - * #endcode + * @endcode + * + * */ #ifdef __cplusplus extern "C" { #endif - void error(const char* format, ...); #ifdef __cplusplus