summaryrefslogtreecommitdiff
path: root/test/util.h
diff options
context:
space:
mode:
authormzuenni <michi.zuendorf@gmail.com>2025-07-10 17:40:18 +0200
committermzuenni <michi.zuendorf@gmail.com>2025-07-10 17:40:18 +0200
commit630a5bdf06d59b8340fb4bfc0e692cbcf094026a (patch)
treeadee732c8d2cdcb46e5f400611c370b4c2ec1947 /test/util.h
parent609d5a3bf490cfa151b40e60cb62c8ff751bbe56 (diff)
run with sanitizer
Diffstat (limited to 'test/util.h')
-rw-r--r--test/util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/util.h b/test/util.h
index 6f23b82..8de393d 100644
--- a/test/util.h
+++ b/test/util.h
@@ -4,6 +4,13 @@ using namespace std;
#define all(x) std::begin(x), std::end(x)
#define sz(x) (ll)std::size(x)
+#ifdef SANITIZE
+ constexpr bool sanitize = true;
+#else
+ constexpr bool sanitize = false;
+#endif
+
+
using ll = long long;
using lll = __int128;
using ld = long double;