diff --git a/docs/changes.txt b/docs/changes.txt index 4fb8c58d6f..fab00ba096 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -91,6 +91,9 @@ Changes in behaviour which may result in build errors options was completely removed. Please use address sanitizer or similar tools that are incomparably more useful for this than that legacy code. +- wxTEST_DIALOG() macro now must be followed by semicolon, whereas previously + it was only supposed to, but it wasn't mandatory to use one after it. + 3.3.0: (released 2022-??-??) ---------------------------- diff --git a/include/wx/testing.h b/include/wx/testing.h index 803f0654b8..19021f1e18 100644 --- a/include/wx/testing.h +++ b/include/wx/testing.h @@ -516,12 +516,13 @@ private: method. */ #define wxTEST_DIALOG(codeToRun, ...) \ - { \ + wxSTATEMENT_MACRO_BEGIN \ wxTEST_DIALOG_HOOK_CLASS wx_hook(__FILE__, __LINE__, __func__); \ wxCALL_FOR_EACH(WX_TEST_IMPL_ADD_EXPECTATION, __VA_ARGS__) \ codeToRun; \ wx_hook.CheckUnmetExpectations(); \ - } + wxSTATEMENT_MACRO_END + #endif // !WXBUILDING