Unit tests: Remove `#ifndef UNITTEST` from the mbed_assert.h stub

The stub version of mbed_assert.h is never used outside unit tests,
so the check on `UNITTEST` is redundant.
pull/14884/head
Lingkai Dong 2021-07-06 16:56:28 +01:00
parent 3a24305916
commit eb6d1aa03e
1 changed files with 0 additions and 2 deletions

View File

@ -41,9 +41,7 @@ extern "C" {
*/
// 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