summaryrefslogtreecommitdiff
path: root/base.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-12-30 13:49:01 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-12-30 13:49:01 -0500
commit3d56cc1986f855f91844915e35d0225bd8e07109 (patch)
tree0ab06288e6a4d699b55b68931487e5a6ab889c3f /base.h
parentf10f07553e599f1320afbaa2dfeb0b267139cd74 (diff)
more config
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") \