aboutsummaryrefslogtreecommitdiff
path: root/zencore/intmath.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-09-21 11:06:13 +0200
committerMartin Ridgers <[email protected]>2021-09-21 11:06:13 +0200
commit68c951e0f440ffd483795dced737e88152c1a581 (patch)
tree5c0910ca2a85b45fb05dba3ce457b7d156213894 /zencore/intmath.cpp
parentMerge main into linux-mac (diff)
parentTrigger storage scrubbing pass at startup (diff)
downloadzen-68c951e0f440ffd483795dced737e88152c1a581.tar.xz
zen-68c951e0f440ffd483795dced737e88152c1a581.zip
Merged main into linux-mac
Diffstat (limited to 'zencore/intmath.cpp')
-rw-r--r--zencore/intmath.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/zencore/intmath.cpp b/zencore/intmath.cpp
index 98c345c79..5a686dc8e 100644
--- a/zencore/intmath.cpp
+++ b/zencore/intmath.cpp
@@ -3,7 +3,7 @@
#include <zencore/endian.h>
#include <zencore/intmath.h>
-#include <doctest/doctest.h>
+#include <zencore/testing.h>
namespace zen {
@@ -12,6 +12,8 @@ namespace zen {
// Testing related code follows...
//
+#if ZEN_WITH_TESTS
+
void
intmath_forcelink()
{
@@ -58,4 +60,6 @@ TEST_CASE("intmath")
CHECK(ByteSwap(uint64_t(0x214d'6172'7469'6e21ull)) == 0x216e'6974'7261'4d21ull);
}
+#endif
+
} // namespace zen