Loading...
Searching...
No Matches
Go to the documentation of this file.
17#define _COUNTOF_IS_ARRAY(x) (!__builtin_types_compatible_p(typeof(x), typeof(&(x)[0])))
19#define countof(array) \
21 static_assert(_COUNTOF_IS_ARRAY(array), \
22 "countof() argument must be an array"); \
23 (sizeof(array) / sizeof((array)[0])); \