diff --git a/include/list.h b/include/list.h index 7e1aece..eda1488 100644 --- a/include/list.h +++ b/include/list.h @@ -18,7 +18,7 @@ extern void list_reverse(vtype_list* x); #define list_pop(x, s, value) _LIBCDSB_Generic(libcdsb_list, find, value)(x, s, value, 0, 1) #define list_find(x, s, value) _LIBCDSB_Generic(libcdsb_list, find, value)(x, s, value, 0, 0) #define list_rfind(x, s, value) _LIBCDSB_Generic(libcdsb_list, find, value)(x, s, value, 1, 0) -#define list_countof(s, value) _LIBCDSB_Generic(libcdsb_list, count, value)(x, value) +#define list_countof(s, value) _LIBCDSB_Generic(libcdsb_list, count, value)(s, value) #define list_indexof(s, value) list_find(0, s, value) #define list_remove(s, value) list_pop(0, s, value) #define in_list(s, value) (list_indexof(s, value) >= 0)