mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +03:00
Switched to using '_Static_assert'.
This commit is contained in:
parent
70ac9423c7
commit
37568a7078
1 changed files with 1 additions and 4 deletions
|
@ -58,10 +58,7 @@
|
|||
#define UNUSED(x) (void)(x)
|
||||
#endif
|
||||
|
||||
#define STATIC_ASSERT(condition, name) \
|
||||
enum { assert_failed_ ## name = sizeof(char [(condition) ? 1 : -1 ]) }
|
||||
// If it is decided to ditch the -Wpedantic build flag, this should be switched to:
|
||||
// _Static_assert((condition), #name)
|
||||
#define STATIC_ASSERT(condition, name) _Static_assert((condition), #name)
|
||||
|
||||
|
||||
#define BIT(x) (1 << (x))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue