X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/edda5768ab5b901c460f486c97f02f151f843ea7..30e24d9dd5a5abf1c9a375ea259eb239b122b7f7:/wxPython/src/_evtloop.i diff --git a/wxPython/src/_evtloop.i b/wxPython/src/_evtloop.i index 124be31535..de95253c70 100644 --- a/wxPython/src/_evtloop.i +++ b/wxPython/src/_evtloop.i @@ -20,7 +20,7 @@ %newgroup %{ -#ifdef __WXMAC__ +#if 0 // #ifdef __WXMAC__ // A dummy class that raises an exception if used... class wxEventLoop @@ -72,4 +72,17 @@ public: }; + +// This object sets the wxEventLoop given to the ctor as the currently active +// one and unsets it in its dtor, this is especially useful in presence of +// exceptions but is more tidy even when we don't use them +class wxEventLoopActivator +{ +public: + wxEventLoopActivator(wxEventLoop *evtLoop); + ~wxEventLoopActivator(); +}; + + + //---------------------------------------------------------------------------