mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 18:27:56 +08:00
nuttx: replace all ARRAY_SIZE()/ARRAYSIZE() to nitems()
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
@@ -27,14 +27,12 @@
|
||||
|
||||
#include <nuttx/compiler.h>
|
||||
|
||||
#include <sys/param.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor definitions
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef ARRAY_SIZE
|
||||
# define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
|
||||
#endif
|
||||
|
||||
#define RPMSGDEV_NAME_PREFIX "rpmsgdev-"
|
||||
#define RPMSGDEV_NAME_PREFIX_LEN 9
|
||||
|
||||
|
||||
Reference in New Issue
Block a user