From 4c9cd1525dbefaba6f517d7a931f24e7e06e5091 Mon Sep 17 00:00:00 2001 From: Gregory Lirent Date: Sun, 5 Jun 2022 19:54:20 +0300 Subject: [PATCH] Fix list symbol calling --- include/list.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)