From 78551dec4faaf5ff4342329d628087fdc1598317 Mon Sep 17 00:00:00 2001 From: Holmes Futrell Date: Thu, 17 Jul 2008 22:50:39 +0000 Subject: [PATCH] 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 | 13 +++++++++++++ src/video/uikit/jump.h | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 src/video/uikit/jump.c create mode 100644 src/video/uikit/jump.h diff --git a/src/video/uikit/jump.c b/src/video/uikit/jump.c new file mode 100644 index 000000000..c07b3400d --- /dev/null +++ b/src/video/uikit/jump.c @@ -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 diff --git a/src/video/uikit/jump.h b/src/video/uikit/jump.h new file mode 100644 index 000000000..7c0286593 --- /dev/null +++ b/src/video/uikit/jump.h @@ -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