comments and trivials gsoc2008_iphone
authorHolmes Futrell <hfutrell@umail.ucsb.edu>
Sat, 16 Aug 2008 00:14:35 +0000
branchgsoc2008_iphone
changeset 2449 4a07dc228e93
parent 2448 e060950cbf30
child 2450 96124abbcede
comments and trivials
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 <Foundation/Foundation.h>
-#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);
-
 	}
 
 }