mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #11132 from kivaisan/fix_mbed_assert_for_unittests
Fix MBED_ASSERT for UTspull/11150/head
commit
6722d8c804
|
@ -39,7 +39,12 @@ extern "C" {
|
|||
* @param file File where assertation failed.
|
||||
* @param line Failing assertation line number.
|
||||
*/
|
||||
MBED_NORETURN void mbed_assert_internal(const char *expr, const char *file, int line);
|
||||
// mbed_assert_internal UT stub only prints an assert trace and returns, so therefore
|
||||
// MBED_NORETURN must not be defined for UTs.
|
||||
#ifndef UNITTEST
|
||||
MBED_NORETURN
|
||||
#endif
|
||||
void mbed_assert_internal(const char *expr, const char *file, int line);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -132,4 +137,3 @@ do { \
|
|||
/**@}*/
|
||||
|
||||
/**@}*/
|
||||
|
||||
|
|
Loading…
Reference in New Issue