summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/shared.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/shared.h b/hw/shared.h
index 990c55f..a0687e2 100644
--- a/hw/shared.h
+++ b/hw/shared.h
@@ -40,6 +40,8 @@
#define _E(x, ...) do { } while (0)
#endif
+#define ARRAY_SIZE(name) (sizeof(name)/sizeof(name[0]))
+
#define SHARED_H_BUF_MAX 255
static inline int sys_read_buf(char *file, char *buf, int len)