diff options
| author | 2025-12-11 20:43:24 +0100 | |
|---|---|---|
| committer | 2025-12-11 20:43:24 +0100 | |
| commit | 88652eeb10cd9381aafb2d55e9474bb0799630b1 (patch) | |
| tree | 2ba02aa77ce8357e29ddb502aee18109a90bd136 /common.h | |
| parent | 2bbdb7a6b8204ae3caa5235c4ba637834036a299 (diff) | |
rename arraylength macro -> countof
Diffstat (limited to 'common.h')
| -rw-r--r-- | common.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -34,7 +34,7 @@ typedef unsigned uint; #define static_assert(x) _Static_assert(x, #x) #define in_range(x, Lo, Hi) ((uint) (x) - (Lo) <= (Hi) - (Lo)) /* lo <= x <= hi; lo > 0, hi > 0 */ #define alignup(x, A) (((x) + ((A) - 1)) & -(A)) -#define arraylength(a) (sizeof(a) / sizeof 0[a]) +#define countof(a) (sizeof(a) / sizeof 0[a]) enum { SPANFILEBITS = 10 }; struct span { |