1
0
Fork 0
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:
Konstantin Sharlaimov (DigitalEntity) 2017-08-04 00:12:07 +10:00
parent c03c7d6bce
commit 3dee85cb46
3 changed files with 5 additions and 3 deletions

View file

@ -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
*/