From a24f56682841eed2f0360c63d0f7e9ff489443be Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Tue, 2 Apr 2024 10:47:18 +0800 Subject: [PATCH] feat undef REQUIRE,CHECK,CHECK_EQ --- src/sled/testing/doctest.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/sled/testing/doctest.h b/src/sled/testing/doctest.h index a31c431..95a4118 100644 --- a/src/sled/testing/doctest.h +++ b/src/sled/testing/doctest.h @@ -57,6 +57,22 @@ #define DOCTEST_TOSTR_IMPL(x) #x #define DOCTEST_TOSTR(x) DOCTEST_TOSTR_IMPL(x) +#ifdef REQUIRE +#undef REQUIRE +#endif + +#ifdef CHECK +#undef CHECK +#endif + +#ifdef CHECK_EQ +#undef CHECK_EQ +#endif + +#ifdef CHECK_NE +#undef CHECK_NE +#endif + #define DOCTEST_VERSION_STR \ DOCTEST_TOSTR(DOCTEST_VERSION_MAJOR) "." \ DOCTEST_TOSTR(DOCTEST_VERSION_MINOR) "." \