diff options
| author | hathach <[email protected]> | 2013-09-19 16:11:11 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-09-19 16:11:11 +0700 |
| commit | 86681fe44226c636e62320f3cedcaddcd53259e9 (patch) | |
| tree | cd650952db469968d96bef1f4ea18207d3095b8c /tinyusb/common/assertion.h | |
| parent | 61c591b9ac49022fd287827951cd1f34d4fdbb1a (diff) | |
starting to add support for IAR workbench
Diffstat (limited to 'tinyusb/common/assertion.h')
| -rw-r--r-- | tinyusb/common/assertion.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tinyusb/common/assertion.h b/tinyusb/common/assertion.h index 5e5a84054..7d8b3fcba 100644 --- a/tinyusb/common/assertion.h +++ b/tinyusb/common/assertion.h @@ -60,6 +60,8 @@ extern "C" #include "tusb_option.h" #include "hal/hal.h" // TODO find a way to break hal dependency +#define VOID_RETURN + //--------------------------------------------------------------------+ // Compile-time Assert //--------------------------------------------------------------------+ @@ -95,7 +97,7 @@ extern "C" #ifndef _TEST_ASSERT_ #define ASSERT_ERROR_HANDLER(x, para) \ - return (x) + return x #else #define ASSERT_ERROR_HANDLER(x, para) Throw(x) #endif |
