mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-13 13:37:52 +00:00
nimble/mesh: Do not redefine ARRAY_SIZE
os/util.h has it now, but it may still be needed for ports.
This commit is contained in:
@@ -127,7 +127,10 @@ extern "C" {
|
||||
#define sys_be16_to_cpu(a) be16toh(a)
|
||||
#define sys_le16_to_cpu(a) le16toh(a)
|
||||
|
||||
#ifndef ARRAY_SIZE
|
||||
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
|
||||
#endif
|
||||
|
||||
#define CODE_UNREACHABLE __builtin_unreachable()
|
||||
#define __ASSERT(code, str) \
|
||||
do { \
|
||||
|
||||
Reference in New Issue
Block a user