Browse Source

doctest: Update to 2.4.8

Rémi Verschelde 3 years ago
parent
commit
eb9fd57f76
3 changed files with 352 additions and 218 deletions
  1. 3 4
      tests/test_macros.h
  2. 5 2
      thirdparty/README.md
  3. 344 212
      thirdparty/doctest/doctest.h

+ 3 - 4
tests/test_macros.h

@@ -125,10 +125,9 @@ typedef void (*TestFunc)();
 extern HashMap<String, TestFunc> *test_commands;
 extern HashMap<String, TestFunc> *test_commands;
 int register_test_command(String p_command, TestFunc p_function);
 int register_test_command(String p_command, TestFunc p_function);
 
 
-#define REGISTER_TEST_COMMAND(m_command, m_function)                    \
-	DOCTEST_GLOBAL_NO_WARNINGS(DOCTEST_ANONYMOUS(_DOCTEST_ANON_VAR_)) = \
-			register_test_command(m_command, m_function);               \
-	DOCTEST_GLOBAL_NO_WARNINGS_END()
+#define REGISTER_TEST_COMMAND(m_command, m_function)                 \
+	DOCTEST_GLOBAL_NO_WARNINGS(DOCTEST_ANONYMOUS(DOCTEST_ANON_VAR_), \
+			register_test_command(m_command, m_function))
 
 
 // Utility macros to send an event actions to a given object
 // Utility macros to send an event actions to a given object
 // Requires Message Queue and InputMap to be setup.
 // Requires Message Queue and InputMap to be setup.

+ 5 - 2
thirdparty/README.md

@@ -62,10 +62,13 @@ Files extracted from upstream source:
 ## doctest
 ## doctest
 
 
 - Upstream: https://github.com/onqtam/doctest
 - Upstream: https://github.com/onqtam/doctest
-- Version: 2.4.4 (97d5a9447e66cd5e107b7a6c463be4a468a40496, 2020)
+- Version: 2.4.8 (7b9885133108ae301ddd16e2651320f54cafeba7, 2022)
 - License: MIT
 - License: MIT
 
 
-Extracted from .zip provided. Extracted license and header only.
+Files extracted from upstream source:
+
+- `doctest/doctest.h` as `doctest.h`
+- `LICENSE.txt`
 
 
 
 
 ## embree
 ## embree

File diff suppressed because it is too large
+ 344 - 212
thirdparty/doctest/doctest.h


Some files were not shown because too many files changed in this diff