small improvement
diff --git a/doctest/doctest.h b/doctest/doctest.h
index 7f88660..8c648e3 100644
--- a/doctest/doctest.h
+++ b/doctest/doctest.h
@@ -1928,15 +1928,12 @@
struct DOCTEST_CAT(id, ITERATOR)<std::tuple<>> \
{ \
DOCTEST_CAT(id, ITERATOR)(int, int) {} \
- }
-
-#define DOCTEST_TEST_CASE_TEMPLATE_DEFINE_IMPL_PROXY(dec, T, id, anon) \
- DOCTEST_TEST_CASE_TEMPLATE_DEFINE_IMPL(dec, T, id, anon); \
+ }; \
template <typename T> \
inline void anon()
#define DOCTEST_TEST_CASE_TEMPLATE_DEFINE(dec, T, id) \
- DOCTEST_TEST_CASE_TEMPLATE_DEFINE_IMPL_PROXY(dec, T, id, DOCTEST_ANONYMOUS(_DOCTEST_ANON_TMP_))
+ DOCTEST_TEST_CASE_TEMPLATE_DEFINE_IMPL(dec, T, id, DOCTEST_ANONYMOUS(_DOCTEST_ANON_TMP_))
#define DOCTEST_TEST_CASE_TEMPLATE_INVOKE_IMPL(id, anon, ...) \
DOCTEST_GLOBAL_NO_WARNINGS(DOCTEST_CAT(anon, DUMMY)) = [] { \
@@ -1963,7 +1960,7 @@
typedef int DOCTEST_ANONYMOUS(_DOCTEST_ANON_FOR_SEMICOLON_)
#define DOCTEST_TEST_CASE_TEMPLATE_IMPL(dec, T, anon, ...) \
- DOCTEST_TEST_CASE_TEMPLATE_DEFINE_IMPL_PROXY(dec, T, anon, anon); \
+ DOCTEST_TEST_CASE_TEMPLATE_DEFINE_IMPL(dec, T, anon, anon); \
DOCTEST_TEST_CASE_TEMPLATE_INVOKE_IMPL(anon, anon, __VA_ARGS__) \
template <typename T> \
inline void anon()
diff --git a/doctest/parts/doctest_fwd.h b/doctest/parts/doctest_fwd.h
index a0f21e4..2083ea5 100644
--- a/doctest/parts/doctest_fwd.h
+++ b/doctest/parts/doctest_fwd.h
@@ -1925,15 +1925,12 @@
struct DOCTEST_CAT(id, ITERATOR)<std::tuple<>> \
{ \
DOCTEST_CAT(id, ITERATOR)(int, int) {} \
- }
-
-#define DOCTEST_TEST_CASE_TEMPLATE_DEFINE_IMPL_PROXY(dec, T, id, anon) \
- DOCTEST_TEST_CASE_TEMPLATE_DEFINE_IMPL(dec, T, id, anon); \
+ }; \
template <typename T> \
inline void anon()
#define DOCTEST_TEST_CASE_TEMPLATE_DEFINE(dec, T, id) \
- DOCTEST_TEST_CASE_TEMPLATE_DEFINE_IMPL_PROXY(dec, T, id, DOCTEST_ANONYMOUS(_DOCTEST_ANON_TMP_))
+ DOCTEST_TEST_CASE_TEMPLATE_DEFINE_IMPL(dec, T, id, DOCTEST_ANONYMOUS(_DOCTEST_ANON_TMP_))
#define DOCTEST_TEST_CASE_TEMPLATE_INVOKE_IMPL(id, anon, ...) \
DOCTEST_GLOBAL_NO_WARNINGS(DOCTEST_CAT(anon, DUMMY)) = [] { \
@@ -1960,7 +1957,7 @@
typedef int DOCTEST_ANONYMOUS(_DOCTEST_ANON_FOR_SEMICOLON_)
#define DOCTEST_TEST_CASE_TEMPLATE_IMPL(dec, T, anon, ...) \
- DOCTEST_TEST_CASE_TEMPLATE_DEFINE_IMPL_PROXY(dec, T, anon, anon); \
+ DOCTEST_TEST_CASE_TEMPLATE_DEFINE_IMPL(dec, T, anon, anon); \
DOCTEST_TEST_CASE_TEMPLATE_INVOKE_IMPL(anon, anon, __VA_ARGS__) \
template <typename T> \
inline void anon()
diff --git a/examples/all_features/main.cpp b/examples/all_features/main.cpp
index 7d23812..76086c7 100644
--- a/examples/all_features/main.cpp
+++ b/examples/all_features/main.cpp
@@ -13,7 +13,7 @@
// defaults
context.addFilter("test-case-exclude", "*math*"); // exclude test cases with "math" in the name
- context.setOption("rand-seed", 324); // if order-by is set to "rand" ise this seed
+ context.setOption("rand-seed", 324); // if order-by is set to "rand" use this seed
context.setOption("order-by", "file"); // sort the test cases by file and line
context.applyCommandLine(argc, argv);