From 958abfef935219078439729252aaf60350dd5ffe Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Tue, 24 May 2022 23:30:14 +0200 Subject: [PATCH] Make INIT_SET operator optional --- m-i-list.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/m-i-list.h b/m-i-list.h index 3eef0868..5fa0c14e 100644 --- a/m-i-list.h +++ b/m-i-list.h @@ -510,7 +510,7 @@ typedef struct m_il1st_head_s { M_C(name, _next)(it); \ } \ \ - M_IF_METHOD(NEW, oplist)( \ + M_IF_METHOD2(NEW, INIT_SET, oplist)( \ static inline void \ M_C(name, _insert)(list_t list, it_t it, type x) \ { \ @@ -528,7 +528,7 @@ typedef struct m_il1st_head_s { (void) list; \ M_IL1ST_CONTRACT(name, list); \ } \ - , /* NEW not defined */) \ + , /* NEW & INIT_SET not defined */) \ \ static inline type * \ M_C(name, _pop_back)(list_t list) \