AP_Common: add helper macro ARRAY_SIZE
This commit is contained in:
parent
f1ee129423
commit
82314ee4a3
@ -80,6 +80,8 @@
|
||||
#define LOWBYTE(i) ((uint8_t)(i))
|
||||
#define HIGHBYTE(i) ((uint8_t)(((uint16_t)(i))>>8))
|
||||
|
||||
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
|
||||
|
||||
// @}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user