diff options
| author | hathach <[email protected]> | 2018-03-07 15:30:32 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-03-07 15:30:32 +0700 |
| commit | 7092db264f9284c23d777562947111369baf7f68 (patch) | |
| tree | bbbb70ec1b8caf7f90d0574193916c13258672c4 /tinyusb/common/verify.h | |
| parent | 889169d4d06266e1f827e79259a1ac1aac1bbcb3 (diff) | |
update
Diffstat (limited to 'tinyusb/common/verify.h')
| -rw-r--r-- | tinyusb/common/verify.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tinyusb/common/verify.h b/tinyusb/common/verify.h index b2d49071d..4c4dc2b61 100644 --- a/tinyusb/common/verify.h +++ b/tinyusb/common/verify.h @@ -120,8 +120,8 @@ * - VERIFY_1ARGS : return false if failed * - VERIFY_2ARGS : return provided value if failed *------------------------------------------------------------------*/ -#define VERIFY_1ARGS(cond) do { if (!(cond)) return false; } while(0) -#define VERIFY_2ARGS(cond, _error) do { if (!(cond)) return _error; } while(0) +#define VERIFY_1ARGS(cond) do { if (!(cond)) { hal_debugger_breakpoint(); return false; } } while(0) +#define VERIFY_2ARGS(cond, _error) do { if (!(cond)) { hal_debugger_breakpoint(); return _error;} } while(0) /** * Check if condition is success (true), otherwise return |
