From 981342ef807ebcefba8eeba74511cdcedf9c36bd Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 5 Jul 2021 13:38:33 +0200 Subject: Device manager, panic and IDE read --- src/loader/inc/def.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/loader/inc/def.h') diff --git a/src/loader/inc/def.h b/src/loader/inc/def.h index 8c2f9aa..cb41c78 100644 --- a/src/loader/inc/def.h +++ b/src/loader/inc/def.h @@ -22,6 +22,7 @@ typedef __builtin_va_list va_list; #define MIN(a, b) (((a) < (b)) ? (a) : (b)) #define MAX(a, b) (((a) > (b)) ? (a) : (b)) #define ABS(a) (((a) < 0) ? -(a) : (a)) +#define COUNT(a) (sizeof(a) / sizeof 0 [a]) #define PACKED __attribute__((packed)) -- cgit v1.2.3