mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-16 05:42:56 +00:00
fix compiler static assert complain
This commit is contained in:
parent
23c7c2102b
commit
460285f852
@ -59,6 +59,7 @@
|
|||||||
// Compile-time Assert (use TU_VERIFY_STATIC to avoid name conflict)
|
// Compile-time Assert (use TU_VERIFY_STATIC to avoid name conflict)
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
#if defined(__ICCARM__) || (__STDC_VERSION__ >= 201112L )
|
#if defined(__ICCARM__) || (__STDC_VERSION__ >= 201112L )
|
||||||
|
#include <assert.h>
|
||||||
#define TU_VERIFY_STATIC static_assert
|
#define TU_VERIFY_STATIC static_assert
|
||||||
#else
|
#else
|
||||||
#define TU_VERIFY_STATIC(const_expr, _mess) enum { XSTRING_CONCAT_(_verify_static_, _TU_COUNTER_) = 1/(!!(const_expr)) }
|
#define TU_VERIFY_STATIC(const_expr, _mess) enum { XSTRING_CONCAT_(_verify_static_, _TU_COUNTER_) = 1/(!!(const_expr)) }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user