From 9371fa0fbc45db1f75f05231c71c57ea659ec249 Mon Sep 17 00:00:00 2001 From: dzaima Date: Wed, 9 Oct 2024 02:46:02 +0300 Subject: [PATCH] make PROPER_FILLS customizable --- src/h.h | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/src/h.h b/src/h.h index 0ee082e4..43b5b90f 100644 --- a/src/h.h +++ b/src/h.h @@ -9,12 +9,6 @@ #ifndef CHECK_VALID #define CHECK_VALID 1 #endif -#ifndef EACH_FILLS - #define EACH_FILLS 0 -#endif -#ifndef SFNS_FILLS - #define SFNS_FILLS 1 -#endif #ifndef MM #define MM 1 #endif @@ -52,12 +46,14 @@ #ifndef SEMANTIC_CATCH #define SEMANTIC_CATCH USE_SETJMP #endif -#if SEMANTIC_CATCH - #define PROPER_FILLS (EACH_FILLS & SFNS_FILLS) -#else - #undef EACH_FILLS - #define EACH_FILLS 0 - #define PROPER_FILLS 0 +#ifndef EACH_FILLS + #define EACH_FILLS 0 // must stay 0 if !SEMANTIC_CATCH +#endif +#ifndef SFNS_FILLS + #define SFNS_FILLS 1 +#endif +#ifndef PROPER_FILLS + #define PROPER_FILLS (SEMANTIC_CATCH & EACH_FILLS & SFNS_FILLS) #endif #if ALL_R0 || ALL_R1