]> git.saurik.com Git - wxWidgets.git/commitdiff
IsInAssert is only available (and only makes sense) in a debug build so
authorDavid Elliott <dfe@tgwbd.org>
Wed, 14 Jan 2004 04:44:37 +0000 (04:44 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Wed, 14 Jan 2004 04:44:37 +0000 (04:44 +0000)
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

src/cocoa/app.mm

index 99eb4261c8d2d046b9273b348f988894d40ad1ec..747330ed53b535131e2879983368a1877f151766 100644 (file)
@@ -81,7 +81,11 @@ WX_IMPLEMENT_POSER(wxPoserNSApplication);
     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");