changeset 2356:5c27688b08cf gsoc2008_iphone

These files contain some environment storage necessary for an ugly hack I had to write so that SDL_QUIT events would be handled correctly on the platform. Please see the comment in UIKit_PumpEvents located in SDL_uikitevents.m and let me know if there is a better way to do this.
author Holmes Futrell <hfutrell@umail.ucsb.edu>
date Thu, 17 Jul 2008 22:50:39 +0000
parents eec14ed2bb18
children ad4a291c85ab
files src/video/uikit/jump.c src/video/uikit/jump.h
diffstat 2 files changed, 26 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/video/uikit/jump.c	Thu Jul 17 22:50:39 2008 +0000
@@ -0,0 +1,13 @@
+/*
+ *  jump.c
+ *  iPodSDL
+ *
+ *  Created by Holmes Futrell on 7/2/08.
+ *  Copyright 2008 __MyCompanyName__. All rights reserved.
+ *
+ */
+
+#include "jump.h"
+
+jmp_buf env;
+jmp_buf *jump_env() { return &env; }
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/video/uikit/jump.h	Thu Jul 17 22:50:39 2008 +0000
@@ -0,0 +1,13 @@
+/*
+ *  jump.h
+ *  iPodSDL
+ *
+ *  Created by Holmes Futrell on 7/2/08.
+ *  Copyright 2008 __MyCompanyName__. All rights reserved.
+ *
+ */
+
+#include "setjmp.h"
+
+extern jmp_buf* jump_env();
+extern int canJump;
\ No newline at end of file