diff --git a/headers/os/support/SupportDefs.h b/headers/os/support/SupportDefs.h index 7e47018178..e4f6293b3a 100644 --- a/headers/os/support/SupportDefs.h +++ b/headers/os/support/SupportDefs.h @@ -202,6 +202,9 @@ extern void* get_stack_frame(void); } #endif +/* Count items in an array, count_of is a common define */ +#define B_COUNT_OF(a) (sizeof(a) / sizeof(a[0])) + /* Obsolete or discouraged API */ /* use 'true' and 'false' */