summaryrefslogtreecommitdiffstats
path: root/source/macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/macros.h')
-rw-r--r--source/macros.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/macros.h b/source/macros.h
index d2231ff..9a9db83 100644
--- a/source/macros.h
+++ b/source/macros.h
@@ -9,4 +9,6 @@
#define COMMA ,
+#define ARRLEN(_a) sizeof(_a) / sizeof(*(_a))
+
#endif /* include guard */