don't try to call it in a release build.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25170
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if(event)
return event;
// No events, try doing some idle stuff
if(event)
return event;
// No events, try doing some idle stuff
- if(sg_needIdle && !wxTheApp->IsInAssert() && ([NSDefaultRunLoopMode isEqualToString:mode] || [NSModalPanelRunLoopMode isEqualToString:mode]))
+ if(sg_needIdle
+#ifdef __WXDEBUG__
+ && !wxTheApp->IsInAssert()
+#endif
+ && ([NSDefaultRunLoopMode isEqualToString:mode] || [NSModalPanelRunLoopMode isEqualToString:mode]))
{
sg_needIdle = false;
wxLogDebug("Processing idle events");
{
sg_needIdle = false;
wxLogDebug("Processing idle events");