Skip to content

Commit eb6d1aa

Browse files
committed
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.
1 parent 3a24305 commit eb6d1aa

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

UNITTESTS/target_h/platform/mbed_assert.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ extern "C" {
4141
*/
4242
// mbed_assert_internal UT stub only prints an assert trace and returns, so therefore
4343
// MBED_NORETURN must not be defined for UTs.
44-
#ifndef UNITTEST
4544
MBED_NORETURN
46-
#endif
4745
void mbed_assert_internal(const char *expr, const char *file, int line);
4846

4947
#ifdef __cplusplus

0 commit comments

Comments
 (0)