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. gsoc2008_iphone
authorHolmes Futrell <hfutrell@umail.ucsb.edu>
Thu, 17 Jul 2008 22:50:39 +0000
branchgsoc2008_iphone
changeset 2356 5c27688b08cf
parent 2355 eec14ed2bb18
child 2357 ad4a291c85ab
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.
src/video/uikit/jump.c
src/video/uikit/jump.h
--- /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