# HG changeset patch # User Holmes Futrell # Date 1218845675 0 # Node ID 4a07dc228e93f13c9a3ceb6a1f94d380a63f26c6 # Parent e060950cbf30e7d6a064098c9e4e2b1ad250146b comments and trivials diff -r e060950cbf30 -r 4a07dc228e93 src/video/uikit/SDL_uikitevents.m --- a/src/video/uikit/SDL_uikitevents.m Sat Aug 16 00:13:42 2008 +0000 +++ b/src/video/uikit/SDL_uikitevents.m Sat Aug 16 00:14:35 2008 +0000 @@ -21,9 +21,6 @@ */ #include "SDL_config.h" -/* Being a null driver, there's no event stream. We just define stubs for - most of the API. */ - #include "SDL.h" #include "../../events/SDL_sysevents.h" #include "../../events/SDL_events_c.h" @@ -32,7 +29,7 @@ #include "SDL_uikitevents.h" #import -#include "jump.h" +#include "jumphack.h" void UIKit_PumpEvents(_THIS) @@ -47,17 +44,13 @@ So what we do is that in the UIApplicationDelegate class (SDLUIApplicationDelegate), when the delegate receives the ApplicationWillTerminate message, we execute a longjmp statement to get back here, preventing an immediate exit. - */ - if (setjmp(*jump_env()) != 0) { - //NSLog(@"Bam! We're back"); - } - else { + if (setjmp(*jump_env()) == 0) { + /* if we're setting the jump, rather than jumping back */ SInt32 result; do { result = CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, TRUE); } while(result == kCFRunLoopRunHandledSource); - } }