mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-25 17:25:18 +03:00
Add STATIC_ASSERT check for box mode count
This commit is contained in:
parent
c03c7d6bce
commit
3dee85cb46
3 changed files with 5 additions and 3 deletions
|
@ -41,6 +41,9 @@
|
|||
|
||||
#define BIT(x) (1 << (x))
|
||||
|
||||
#define STATIC_ASSERT(condition, name) \
|
||||
typedef char assert_failed_ ## name [(condition) ? 1 : -1 ] __attribute__((unused))
|
||||
|
||||
/*
|
||||
http://resnet.uoregon.edu/~gurney_j/jmpc/bitwise.html
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue