aboutsummaryrefslogtreecommitdiff
path: root/core/src/Entrypoint/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/Entrypoint/main.cpp')
-rw-r--r--core/src/Entrypoint/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/Entrypoint/main.cpp b/core/src/Entrypoint/main.cpp
index 5ed7d84..abfb26c 100644
--- a/core/src/Entrypoint/main.cpp
+++ b/core/src/Entrypoint/main.cpp
@@ -96,6 +96,7 @@ static std::unique_ptr<RenderingBackend> CreateBackend(std::string_view option)
}
}
+#ifdef DOCTEST_CONFIG_DISABLE
int main(int argc, char* argv[])
{
argparse::ArgumentParser parser;
@@ -156,3 +157,7 @@ int main(int argc, char* argv[])
return 0;
}
+#else
+# define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
+# include <doctest/doctest.h>
+#endif