add ARRAY_SIZE

which is missing when building with debug mode
This commit is contained in:
hathach 2018-07-10 01:06:57 +07:00
parent c5089d7274
commit f199e87085

View File

@ -80,6 +80,11 @@ void __assert_func(const char *file, int line, const char *func, const char *exp
*/
#define NRFX_STATIC_ASSERT(expression)
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
#endif
//------------------------------------------------------------------------------
#ifdef SOFTDEVICE_PRESENT