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_assert.h
- Revision:
- 158:1c57384330a6
- Parent:
- 156:ff21514d8981
- Child:
- 171:3a7713b1edbc
diff -r e7ca05fa8600 -r 1c57384330a6 platform/mbed_assert.h --- a/platform/mbed_assert.h Thu Nov 09 11:14:10 2017 +0000 +++ b/platform/mbed_assert.h Thu Nov 23 11:44:04 2017 +0000 @@ -1,6 +1,10 @@ /** \addtogroup platform */ /** @{*/ +/** + * \defgroup platform_Assert Assert macros + * @{ + */ /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -39,6 +43,19 @@ } #endif +/** MBED_ASSERT + * Declare runtime assertions: results in runtime error if condition is false + * + * @note + * Use of MBED_ASSERT is limited to Debug and Develop builds. + * + * @code + * + * int Configure(serial_t *obj) { + * MBED_ASSERT(obj); + * } + * @endcode + */ #ifdef NDEBUG #define MBED_ASSERT(expr) ((void)0) @@ -110,4 +127,7 @@ #endif -/** @}*/ +/**@}*/ + +/**@}*/ +