aboutsummaryrefslogtreecommitdiff
path: root/zencore/stream.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/stream.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/stream.cpp')
-rw-r--r--zencore/stream.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/zencore/stream.cpp b/zencore/stream.cpp
index 8687d5501..ead0b014b 100644
--- a/zencore/stream.cpp
+++ b/zencore/stream.cpp
@@ -1,9 +1,10 @@
// Copyright Epic Games, Inc. All Rights Reserved.
-#include <doctest/doctest.h>
#include <stdarg.h>
#include <zencore/memory.h>
#include <zencore/stream.h>
+#include <zencore/testing.h>
+
#include <algorithm>
#include <stdexcept>
@@ -279,6 +280,8 @@ IndentTextWriter::Write(const void* data, size_t byteCount)
// Testing related code follows...
//
+#if ZEN_WITH_TESTS
+
void
stream_forcelink()
{
@@ -336,4 +339,6 @@ TEST_CASE("BinaryWriter and BinaryWriter")
CHECK(i64 == 42);
}
+#endif
+
} // namespace zen