diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-05-17 23:25:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-17 23:25:14 +0200 |
commit | 7e4a02d66cb253e3fb467208f7849a44553ec88e (patch) | |
tree | 63fda1d56d7888a5003079be863d6abc24b6fc81 /tests/test_macros.h | |
parent | 0c1429da0db7222c4e37d2845b635405ccac9bf8 (diff) | |
parent | eb9fd57f76cbb48bd874a5792ff18cc6a9673e7f (diff) |
Merge pull request #61120 from akien-mga/doctest-2.4.8
Diffstat (limited to 'tests/test_macros.h')
-rw-r--r-- | tests/test_macros.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/test_macros.h b/tests/test_macros.h index 189554bd1a..778ba36517 100644 --- a/tests/test_macros.h +++ b/tests/test_macros.h @@ -125,10 +125,9 @@ typedef void (*TestFunc)(); extern HashMap<String, TestFunc> *test_commands; 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 // Requires Message Queue and InputMap to be setup. |