diff options
| author | Martin Ridgers <[email protected]> | 2021-09-21 11:06:13 +0200 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-09-21 11:06:13 +0200 |
| commit | 68c951e0f440ffd483795dced737e88152c1a581 (patch) | |
| tree | 5c0910ca2a85b45fb05dba3ce457b7d156213894 /zencore/refcount.cpp | |
| parent | Merge main into linux-mac (diff) | |
| parent | Trigger storage scrubbing pass at startup (diff) | |
| download | zen-68c951e0f440ffd483795dced737e88152c1a581.tar.xz zen-68c951e0f440ffd483795dced737e88152c1a581.zip | |
Merged main into linux-mac
Diffstat (limited to 'zencore/refcount.cpp')
| -rw-r--r-- | zencore/refcount.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/zencore/refcount.cpp b/zencore/refcount.cpp index 943635552..33b530b90 100644 --- a/zencore/refcount.cpp +++ b/zencore/refcount.cpp @@ -2,7 +2,8 @@ #include <zencore/refcount.h> -#include <doctest/doctest.h> +#include <zencore/testing.h> + #include <functional> namespace zen { @@ -12,6 +13,8 @@ namespace zen { // Testing related code follows... // +#if ZEN_WITH_TESTS + struct TestRefClass : public RefCounted { ~TestRefClass() @@ -93,4 +96,6 @@ TEST_CASE("RefPtr on Stack allocated object") CHECK(IsDestroyed == true); } +#endif + } // namespace zen |