summaryrefslogtreecommitdiffstats
path: root/src/prelude.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-05-31 11:55:50 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-05-31 12:01:30 -0400
commit118a9053f04d0e215bb3fe20562990cc73ae69a2 (patch)
treee9e5ca73377f272d6348f15c5b4dd7b75f01ff5a /src/prelude.h
parent407e6f57bfc05c51d32d4292218f0bdd8eeaa142 (diff)
downloadbfs-118a9053f04d0e215bb3fe20562990cc73ae69a2.tar.xz
list: New SLIST_SPLICE() macro
Diffstat (limited to 'src/prelude.h')
-rw-r--r--src/prelude.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/prelude.h b/src/prelude.h
index c4edcb2..0944df1 100644
--- a/src/prelude.h
+++ b/src/prelude.h
@@ -137,7 +137,7 @@ extern const char bfs_version[];
/**
* Get the length of an array.
*/
-#define countof(array) (sizeof(array) / sizeof(0[array]))
+#define countof(...) (sizeof(__VA_ARGS__) / sizeof(0[__VA_ARGS__]))
/**
* False sharing/destructive interference/largest cache line size.