diff options
| author | peter <peter@pmikkelsen.com> | 2026-09-03 18:59:50 +0000 |
|---|---|---|
| committer | peter <peter@pmikkelsen.com> | 2026-09-03 18:59:50 +0000 |
| commit | 84dd0d9fa985c1c740b3145c6b0d858cca978911 (patch) | |
| tree | 192c8089db02373e4665e63f221e79ac830a40d5 /src/include | |
| parent | 2c5efa29b3db7598a551487d727c35d2e2529342 (diff) | |
Compute chunk->next based on chunk->size, and add some debug checks
FossilOrigin-Name: d0b062b28f5486e63437cfefde99508c64b25d1bf6fecdc0af8c49a80a76ed80
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/aplwc_macros.h | 7 |
1 files changed, 5 insertions, 2 deletions
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 |