We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c9b0fbc + 81e3347 commit 8e84529Copy full SHA for 8e84529
src/common/tusb_compiler.h
@@ -51,10 +51,10 @@
51
#endif
52
53
// Compile-time Assert
54
-#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
55
- #define TU_VERIFY_STATIC _Static_assert
56
-#elif defined (__cplusplus) && __cplusplus >= 201103L
+#if defined (__cplusplus) && __cplusplus >= 201103L
57
#define TU_VERIFY_STATIC static_assert
+#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
+ #define TU_VERIFY_STATIC _Static_assert
58
#elif defined(__CCRX__)
59
#define TU_VERIFY_STATIC(const_expr, _mess) typedef char TU_XSTRCAT(Line, __LINE__)[(const_expr) ? 1 : 0];
60
#else
0 commit comments