diff options
author | Marvin Borner | 2021-07-05 13:38:33 +0200 |
---|---|---|
committer | Marvin Borner | 2021-07-05 13:38:33 +0200 |
commit | 981342ef807ebcefba8eeba74511cdcedf9c36bd (patch) | |
tree | 2f641c75edd21f7fb064a163c997f23f9dc68978 /src/loader/inc/def.h | |
parent | a6858f40888338608fede867d279831e98ec0766 (diff) |
Device manager, panic and IDE read
Diffstat (limited to 'src/loader/inc/def.h')
-rw-r--r-- | src/loader/inc/def.h | 1 |
1 files changed, 1 insertions, 0 deletions
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)) |