summaryrefslogtreecommitdiff
path: root/t/unit-tests/t-reftable-stack.c
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2025-03-19 16:22:56 +0000
committerJunio C Hamano <gitster@pobox.com>2025-03-21 03:31:47 -0700
commit07fbc15c20c2fb447204869071b0576ab8892fa4 (patch)
treeaf429d098454bd46d73043be0c2c73483a6b74fc /t/unit-tests/t-reftable-stack.c
parent683c54c999c301c2cd6f715c411407c413b1d84e (diff)
git-compat-util: introduce ASSERT() macro
Create a ASSERT() macro which is similar to assert(), but will not be compiled out when NDEBUG is defined, and is thus safe to use even if its argument has side-effects. We will use this new macro in a subsequent commit to convert a few existing assert() invocations to ASSERT(). In particular, we'll convert the handful of invocations which cannot be proven to be free of side effects with a simple compiler/linker hack. Signed-off-by: Elijah Newren <newren@gmail.com> Acked-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/unit-tests/t-reftable-stack.c')
0 files changed, 0 insertions, 0 deletions