Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
comments and trivials
Browse files Browse the repository at this point in the history
  • Loading branch information
Holmes Futrell committed Aug 16, 2008
1 parent 258bedf commit ba59f66
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/video/uikit/SDL_uikitevents.m
Expand Up @@ -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"
Expand All @@ -32,7 +29,7 @@
#include "SDL_uikitevents.h"

#import <Foundation/Foundation.h>
#include "jump.h"
#include "jumphack.h"

void
UIKit_PumpEvents(_THIS)
Expand All @@ -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);

}

}
Expand Down

0 comments on commit ba59f66

Please sign in to comment.