summaryrefslogtreecommitdiff
path: root/src/includes/helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/includes/helpers.h')
-rw-r--r--src/includes/helpers.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/includes/helpers.h b/src/includes/helpers.h
index 39b192a..94e59a8 100644
--- a/src/includes/helpers.h
+++ b/src/includes/helpers.h
@@ -46,6 +46,8 @@
# define _unused
#endif
+#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
+
/* Some libc implemntations don't have these */
#ifndef TAILQ_CONCAT
#define TAILQ_CONCAT(head1, head2, field) do { \