diff options
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 |
