X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9e0959cda4dc688c1c7287f99fb61a895f5cfd90..a7689c49fe02c0c065facf736ab28b19f5997b7c:/include/wx/testing.h diff --git a/include/wx/testing.h b/include/wx/testing.h index a67585a130..fce2c508ba 100644 --- a/include/wx/testing.h +++ b/include/wx/testing.h @@ -201,6 +201,7 @@ protected: int m_id; }; +#if wxUSE_FILEDLG template<> class wxExpectModal : public wxExpectModalBase @@ -222,6 +223,7 @@ protected: int m_id; }; +#endif // Implementation of wxModalDialogHook for use in testing, with // wxExpectModal and the wxTEST_DIALOG() macro. It is not intended for @@ -385,6 +387,7 @@ private: wxExpectModal<> for your dialog type and implement its OnInvoked() method. */ +#ifdef wxHAS_VARIADIC_MACROS #define wxTEST_DIALOG(codeToRun, ...) \ { \ wxTEST_DIALOG_HOOK_CLASS wx_hook; \ @@ -392,7 +395,7 @@ private: codeToRun; \ wx_hook.CheckUnmetExpectations(); \ } - +#endif /* wxHAS_VARIADIC_MACROS */ #endif // !WXBUILDING