diff --git a/shared/nm-std-aux/nm-std-aux.h b/shared/nm-std-aux/nm-std-aux.h index af58741d11..6b1483128a 100644 --- a/shared/nm-std-aux/nm-std-aux.h +++ b/shared/nm-std-aux/nm-std-aux.h @@ -109,6 +109,8 @@ /*****************************************************************************/ +#define NM_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0])) + #define NM_PASTE_ARGS(identifier1,identifier2) identifier1 ## identifier2 #define NM_PASTE(identifier1,identifier2) NM_PASTE_ARGS (identifier1, identifier2)