summaryrefslogtreecommitdiff
path: root/base.h
diff options
context:
space:
mode:
Diffstat (limited to 'base.h')
-rw-r--r--base.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/base.h b/base.h
index c6e6de4..c32c149 100644
--- a/base.h
+++ b/base.h
@@ -67,6 +67,7 @@ typedef unsigned long long ullong;
#define Status bool WarnUnusedResult // false = error, true = success
+#define arr_count(a) (sizeof (a) / sizeof *(a))
#ifdef __GNUC__
#define no_warn_start _Pragma("GCC diagnostic push") \