diff options
| author | hathach <[email protected]> | 2018-03-28 14:30:32 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-03-28 14:30:32 +0700 |
| commit | 0d3e66fa0a274d2482d6bbb6dea80508dcd614de (patch) | |
| tree | 7ba8cfbc6ab2d8dd220b7e4c124b4b62ff154684 /tinyusb/common/verify.h | |
| parent | 43ac71179564fc021c2b77408b7f6ba594626007 (diff) | |
clean up static assert
Diffstat (limited to 'tinyusb/common/verify.h')
| -rw-r--r-- | tinyusb/common/verify.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/tinyusb/common/verify.h b/tinyusb/common/verify.h index 5ee80627f..a5eeb5ae8 100644 --- a/tinyusb/common/verify.h +++ b/tinyusb/common/verify.h @@ -52,21 +52,6 @@ #define GET_4TH_ARG(arg1, arg2, arg3, arg4, ...) arg4 //--------------------------------------------------------------------+ -// Compile-time Verify (like assert static) -//--------------------------------------------------------------------+ -#ifdef __ICCARM__ - #define VERIFY_STATIC static_assert -#else - #if defined __COUNTER__ && __COUNTER__ != __COUNTER__ - #define _VERIFY_COUNTER __COUNTER__ - #else - #define _VERIFY_COUNTER __LINE__ - #endif - - #define VERIFY_STATIC(const_expr, _mess) enum { XSTRING_CONCAT_(_verify_static_, _VERIFY_COUNTER) = 1/(!!(const_expr)) } -#endif - -//--------------------------------------------------------------------+ // VERIFY Helper //--------------------------------------------------------------------+ #if TUSB_CFG_DEBUG >= 1 |
