Add DEBUG constexpr

Enable checking use of a constexpr rather than ifdef for checking if in
DEBUG.
This commit is contained in:
Matthew Parkinson
2022-02-01 09:11:35 +00:00
committed by Matthew Parkinson
parent f1be609cdb
commit 3d1b973480
9 changed files with 83 additions and 87 deletions

View File

@@ -95,11 +95,8 @@ int main(int, char**)
setup();
xoroshiro::p128r64 r;
# ifdef NDEBUG
size_t nn = 30;
# else
size_t nn = 3;
# endif
size_t nn = snmalloc::DEBUG ? 30 : 3;
for (size_t n = 0; n < nn; n++)
test::test_external_pointer(r);