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 23565c27688b08cf
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
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/video/uikit/jump.c	Thu Jul 17 22:50:39 2008 +0000
     1.3 @@ -0,0 +1,13 @@
     1.4 +/*
     1.5 + *  jump.c
     1.6 + *  iPodSDL
     1.7 + *
     1.8 + *  Created by Holmes Futrell on 7/2/08.
     1.9 + *  Copyright 2008 __MyCompanyName__. All rights reserved.
    1.10 + *
    1.11 + */
    1.12 +
    1.13 +#include "jump.h"
    1.14 +
    1.15 +jmp_buf env;
    1.16 +jmp_buf *jump_env() { return &env; }
    1.17 \ No newline at end of file
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/src/video/uikit/jump.h	Thu Jul 17 22:50:39 2008 +0000
     2.3 @@ -0,0 +1,13 @@
     2.4 +/*
     2.5 + *  jump.h
     2.6 + *  iPodSDL
     2.7 + *
     2.8 + *  Created by Holmes Futrell on 7/2/08.
     2.9 + *  Copyright 2008 __MyCompanyName__. All rights reserved.
    2.10 + *
    2.11 + */
    2.12 +
    2.13 +#include "setjmp.h"
    2.14 +
    2.15 +extern jmp_buf* jump_env();
    2.16 +extern int canJump;
    2.17 \ No newline at end of file