aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2022-05-20 11:18:15 +0200
committerStefan Boberg <[email protected]>2022-05-20 11:18:15 +0200
commit98b67417f45b25aa534b779c35df68c031b5d58c (patch)
treea9579a33dc8a895af7af6aeb83c658afbf88575e
parentAdded tps (diff)
downloadzen-98b67417f45b25aa534b779c35df68c031b5d58c.tar.xz
zen-98b67417f45b25aa534b779c35df68c031b5d58c.zip
Added ZEN_USE_CATCH2 define
-rw-r--r--zencore/include/zencore/testing.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/zencore/include/zencore/testing.h b/zencore/include/zencore/testing.h
index 38c882edb..faa4eef6c 100644
--- a/zencore/include/zencore/testing.h
+++ b/zencore/include/zencore/testing.h
@@ -9,8 +9,12 @@
# define DOCTEST_CONFIG_IMPLEMENT
#endif
+#ifndef ZEN_USE_CATCH2
+# define ZEN_USE_CATCH2 0
+#endif
+
#if ZEN_WITH_TESTS
-# if 1
+# if ZEN_USE_CATCH2
# include <catch2/catch.hpp>
# define SUBCASE(x) SECTION(x)
# define CHECK_EQ(x, y) CHECK((x) == (y))