aboutsummaryrefslogtreecommitdiff
path: root/src/base.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/base.h')
-rw-r--r--src/base.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/base.h b/src/base.h
index 9c33469..b18b9af 100644
--- a/src/base.h
+++ b/src/base.h
@@ -14,6 +14,8 @@
#include <stdint.h>
+#define ARR_SIZE(xs) (sizeof(xs) / sizeof(xs[0]))
+
typedef uint64_t u64;
typedef uint32_t u32;
typedef int32_t i32;