diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2025-07-07 08:44:05 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2025-07-09 09:00:08 -0400 |
commit | a69f4fb067ec22b95741e37efe355fb1106fefd2 (patch) | |
tree | 016969ad4c6948ffc42b499cfb5fc3be0d64cfe1 /src/bfs.h | |
parent | efb983406cba85a92573f50cfc94c455422e7d3a (diff) | |
download | bfs-a69f4fb067ec22b95741e37efe355fb1106fefd2.tar.xz |
prelude: Move countof() here from bfs.h
countof() will likely be in the C2Y standard.
Link: https://www.open-std.org/JTC1/SC22/WG14/www/docs/n3469.htm
Link: https://thephd.dev/c2y-hitting-the-ground-running
Diffstat (limited to 'src/bfs.h')
-rw-r--r-- | src/bfs.h | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -59,11 +59,6 @@ extern const char bfs_ldlibs[]; // Fundamental utilities /** - * Get the length of an array. - */ -#define countof(...) (sizeof(__VA_ARGS__) / sizeof(0[__VA_ARGS__])) - -/** * False sharing/destructive interference/largest cache line size. */ #ifdef __GCC_DESTRUCTIVE_SIZE |