aboutsummaryrefslogtreecommitdiff
path: root/src/base.h
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-10-15 21:41:16 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-10-15 21:41:16 +0100
commit639808a092001cf621921311c6665554b9235bb6 (patch)
tree2a2e58e989a210b57418a760b9fa5cd9112eafe6 /src/base.h
parent14e9192996749208da8acbad44545dc991dd4ef8 (diff)
downloadovm-639808a092001cf621921311c6665554b9235bb6.tar.gz
ovm-639808a092001cf621921311c6665554b9235bb6.tar.bz2
ovm-639808a092001cf621921311c6665554b9235bb6.zip
Moved vm_* code to its own file (runtime.(h|c))
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;