Skip to content

Commit 9bdbe9c

Browse files
authored
Merge pull request #15219 from mikrodust-henrikp/filename_mbed_assert
Use MBED_FILENAME instead of __FILE__ in MBED_ASSERT
2 parents c4fd338 + 6ff504c commit 9bdbe9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/include/platform/mbed_assert.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ MBED_NORETURN void mbed_assert_internal(const char *expr, const char *file, int
6666
#define MBED_ASSERT(expr) \
6767
do { \
6868
if (!(expr)) { \
69-
mbed_assert_internal(#expr, __FILE__, __LINE__); \
69+
mbed_assert_internal(#expr, MBED_FILENAME, __LINE__); \
7070
} \
7171
} while (0)
7272
#endif

0 commit comments

Comments
 (0)