From 86681fe44226c636e62320f3cedcaddcd53259e9 Mon Sep 17 00:00:00 2001 From: hathach Date: Thu, 19 Sep 2013 16:11:11 +0700 Subject: starting to add support for IAR workbench --- tinyusb/common/assertion.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tinyusb/common/assertion.h') 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 -- cgit v1.3.1