mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 04:15:44 +03:00
Added ARRAYEND and DEBUG_SET utilities
This commit is contained in:
parent
d0daa186cc
commit
af5c1e3902
2 changed files with 3 additions and 0 deletions
|
@ -21,6 +21,7 @@
|
|||
#include <stdint.h>
|
||||
|
||||
#define ARRAYLEN(x) (sizeof(x) / sizeof((x)[0]))
|
||||
#define ARRAYEND(x) (&(x)[ARRAYLEN(x)])
|
||||
|
||||
#define CONCAT_HELPER(x,y) x ## y
|
||||
#define CONCAT(x,y) CONCAT_HELPER(x, y)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue