summaryrefslogtreecommitdiff
path: root/tinyusb
diff options
context:
space:
mode:
authorhathach <[email protected]>2014-03-25 21:43:48 +0700
committerhathach <[email protected]>2014-03-25 21:43:48 +0700
commit680784e9c125c866f866bd9103b97d41cba10702 (patch)
treea989dd19174b02f262288f58e714542d18b5308c /tinyusb
parent5cffa75d7661d64e931594b48d4ee556b75d1b26 (diff)
update keil & iar device project to add lpcxpresso11u14 support
Diffstat (limited to 'tinyusb')
-rw-r--r--tinyusb/common/assertion.h5
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