diff options
Diffstat (limited to 'tinyusb')
| -rw-r--r-- | tinyusb/common/assertion.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tinyusb/common/assertion.h b/tinyusb/common/assertion.h index 329bc11db..fa061a983 100644 --- a/tinyusb/common/assertion.h +++ b/tinyusb/common/assertion.h @@ -81,15 +81,14 @@ extern "C" //--------------------------------------------------------------------+
#ifndef _TEST_
#define ASSERT_MESSAGE(format, ...)\
- _PRINTF("Assert at %s: %s: %d: " format "\n", __BASE_FILE__, __PRETTY_FUNCTION__, __LINE__, __VA_ARGS__)
+ _PRINTF("Assert at %s: %s: %d: " format "\n", __BASE_FILE__, __func__ , __LINE__, __VA_ARGS__)
#else
#define ASSERT_MESSAGE(format, ...)\
_PRINTF("%d:note: Assert " format "\n", __LINE__, __VA_ARGS__)
#endif
#ifndef _TEST_ASSERT_
- #define ASSERT_ERROR_HANDLER(x, para) \
- return x
+ #define ASSERT_ERROR_HANDLER(x, para) return x
#else
#define ASSERT_ERROR_HANDLER(x, para) Throw(x)
#endif
|
