diff options
-rw-r--r-- | lib/memory.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/memory.h b/lib/memory.h index a7eddce4..23962235 100644 --- a/lib/memory.h +++ b/lib/memory.h @@ -21,6 +21,8 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA #ifndef _ZEBRA_MEMORY_H #define _ZEBRA_MEMORY_H +#define array_size(ar) (sizeof(ar) / sizeof(ar[0])) + /* For pretty printing of memory allocate information. */ struct memory_list { |