Merge pull request #15219 from mikrodust-henrikp/filename_mbed_assert

Use MBED_FILENAME instead of __FILE__ in MBED_ASSERT
pull/15222/head
Martin Kojtal 2022-02-02 10:24:06 +01:00 committed by GitHub
commit 9bdbe9cb85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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