From 84dd0d9fa985c1c740b3145c6b0d858cca978911 Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 3 Sep 2026 18:59:50 +0000 Subject: Compute chunk->next based on chunk->size, and add some debug checks FossilOrigin-Name: d0b062b28f5486e63437cfefde99508c64b25d1bf6fecdc0af8c49a80a76ed80 --- src/include/aplwc_macros.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/include/aplwc_macros.h') diff --git a/src/include/aplwc_macros.h b/src/include/aplwc_macros.h index b65848f..f68fea9 100644 --- a/src/include/aplwc_macros.h +++ b/src/include/aplwc_macros.h @@ -27,12 +27,15 @@ #if APLWC_BUILD_TYPE_DEBUG #define ALWAYS(x) ((x) ? 1 : (assert(0), 0)) #define NEVER(x) ((x) ? (assert(0), 1) : 0) + #define DEBUG(x) debug_##x #elif APLWC_BUILD_TYPE_RELEASE - #define ALWAYS(x) (X) - #define NEVER(X) (X) + #define ALWAYS(x) (x) + #define NEVER(x) (x) + #define DEBUG(x) ((void)0) #elif APLWC_BUILD_TYPE_COVERAGE #define ALWAYS(x) (1) #define NEVER(x) (0) + #define DEBUG(x) ((void)0) #endif -- cgit v1.2.3