aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rw-r--r--libs/libc/inc/def.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/libc/inc/def.h b/libs/libc/inc/def.h
index cf49c63..6253371 100644
--- a/libs/libc/inc/def.h
+++ b/libs/libc/inc/def.h
@@ -33,6 +33,8 @@ typedef unsigned long long u64;
#define __STRINGIFY(a) #a
#define STRINGIFY(a) __STRINGIFY(a)
+#define COUNT(a) (sizeof(a) / sizeof 0 [a])
+
#define ATTR __attribute__
#define NORETURN ATTR((noreturn))
#define NOINLINE ATTR((noinline))