From 118a9053f04d0e215bb3fe20562990cc73ae69a2 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 31 May 2024 11:55:50 -0400 Subject: list: New SLIST_SPLICE() macro --- src/prelude.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/prelude.h') 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. -- cgit v1.2.3