Skip to content

Commit

Permalink
Merge pull request #15219 from mikrodust-henrikp/filename_mbed_assert
Browse files Browse the repository at this point in the history
Use MBED_FILENAME instead of __FILE__ in MBED_ASSERT
  • Loading branch information
0xc0170 authored Feb 2, 2022
2 parents c4fd338 + 6ff504c commit 9bdbe9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/include/platform/mbed_assert.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ MBED_NORETURN void mbed_assert_internal(const char *expr, const char *file, int
#define MBED_ASSERT(expr) \
do { \
if (!(expr)) { \
mbed_assert_internal(#expr, __FILE__, __LINE__); \
mbed_assert_internal(#expr, MBED_FILENAME, __LINE__); \
} \
} while (0)
#endif
Expand Down

0 comments on commit 9bdbe9c

Please sign in to comment.