diff options
Diffstat (limited to 'boot/common.c')
| -rw-r--r-- | boot/common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/boot/common.c b/boot/common.c index cf9aa46..a072f60 100644 --- a/boot/common.c +++ b/boot/common.c @@ -10,8 +10,6 @@ #pragma once -#include "catboot.h" - #include <stdarg.h> #include <stddef.h> #include <stdint.h> @@ -102,6 +100,8 @@ check(bool condition, const ascii* message) // for each entry in a linked list. #define FOR_EACH(type, cursor, head) for (type cursor = head; cursor != nil; cursor = cursor->next) +#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0])) + // the common size of region memory blocks. #define REGION_SIZE 65536 |
