mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #15219 from mikrodust-henrikp/filename_mbed_assert
Use MBED_FILENAME instead of __FILE__ in MBED_ASSERTpull/15222/head
commit
9bdbe9cb85
|
@ -66,7 +66,7 @@ MBED_NORETURN void mbed_assert_internal(const char *expr, const char *file, int
|
||||||
#define MBED_ASSERT(expr) \
|
#define MBED_ASSERT(expr) \
|
||||||
do { \
|
do { \
|
||||||
if (!(expr)) { \
|
if (!(expr)) { \
|
||||||
mbed_assert_internal(#expr, __FILE__, __LINE__); \
|
mbed_assert_internal(#expr, MBED_FILENAME, __LINE__); \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue