We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 417a9fe + 882c21b commit 6722d8cCopy full SHA for 6722d8c
UNITTESTS/target_h/platform/mbed_assert.h
@@ -39,7 +39,12 @@ extern "C" {
39
* @param file File where assertation failed.
40
* @param line Failing assertation line number.
41
*/
42
-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
43
+// MBED_NORETURN must not be defined for UTs.
44
+#ifndef UNITTEST
45
+MBED_NORETURN
46
+#endif
47
+void mbed_assert_internal(const char *expr, const char *file, int line);
48
49
#ifdef __cplusplus
50
}
@@ -132,4 +137,3 @@ do { \
132
137
/**@}*/
133
138
134
139
135
-
0 commit comments