From 08b4bc90522c40bb4898b793c9c64611032347ce Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sat, 18 Mar 2023 15:14:31 +0100 Subject: [PATCH] M_LET_IF reuses clear mechanism provided by M_DEFER --- m-core.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/m-core.h b/m-core.h index 9acd9621..570da81d 100644 --- a/m-core.h +++ b/m-core.h @@ -4272,8 +4272,8 @@ m_core_parse2_enum (const char str[], const char **endptr) #define M_LET_IF_INTERNAL(init, test, clear, else_a, cont) \ for(bool cont = true; cont; cont = false) \ - for( init ; cont && ( (test) || (else_a, false) ); (clear), cont = false) \ - for( (void) 0; cont; cont = false) \ + for( init ; cont && ( (test) || (else_a, false) ); cont = false) \ + M_DEFER_INTERNAL(clear, M_C(cont, defer) )