added DOCTEST_CONFIG_SUPER_FAST_ASSERTS which makes the fast asserts insanely fast for compile times - just 1 function call - with 1 tiny change in behavior - breaking into the debugger will be into an internal doctest function instead of in the test case
diff --git a/scripts/bench/bench.py b/scripts/bench/bench.py
index c2334f0..a30a1c2 100644
--- a/scripts/bench/bench.py
+++ b/scripts/bench/bench.py
@@ -15,16 +15,18 @@
the_folder = 'project'
+#doctest_configs = ''
+doctest_configs = '#define DOCTEST_CONFIG_SUPER_FAST_ASSERTS'
+
doctest_header = 'doctest.h'
#doctest_header = 'doctest_1_0.h'
+
#macro = "FAST_CHECK_EQ"
macro = "CHECK"
+
operator = " == "
#operator = ", "
-GCC_cmake_generator = '"MinGW Makefiles"'
-MSVC_cmake_generator = '"Visual Studio 14 Win64"' # MSVC 2015
-
# ==============================================================================
# ==============================================================================
# ==============================================================================
@@ -38,6 +40,9 @@
import shutil
from time import sleep
+GCC_cmake_generator = '"MinGW Makefiles"'
+MSVC_cmake_generator = '"Visual Studio 14 Win64"' # MSVC 2015
+
if os.name != "nt":
GCC_cmake_generator = "Makefiles"
@@ -57,6 +62,7 @@
if with_doctest:
if doctest_disable:
f.write('#define DOCTEST_CONFIG_DISABLE\n')
+ f.write(doctest_configs + '\n')
f.write('#include "' + doctest_header + '"\n\n')
else:
f.write('#include "catch.hpp"\n\n')
@@ -76,6 +82,7 @@
if with_doctest:
if doctest_disable:
f.write('#define DOCTEST_CONFIG_DISABLE\n')
+ f.write(doctest_configs + '\n')
f.write('#define DOCTEST_CONFIG_IMPLEMENT\n')
f.write('#include "' + doctest_header + '"\n\n')
else: