annotate src/video/uikit/jumphack.c @ 2467:058e1f140ff3 gsoc2008_iphone

Fixed problem where creating the view passed NULL as the context for setting current context ... needed to actually pass the context.
author Holmes Futrell <hfutrell@umail.ucsb.edu>
date Mon, 18 Aug 2008 19:39:08 +0000
parents 69ca51fd121d
children
rev   line source
2440
0a0205afed91 Renamed jump.c and jump.h to jumphack.c and jumphack.h ... why? Because they are undesirable hacks used to allow an SDL programmer to execute his/her own code upon program exit.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff changeset
1 /*
0a0205afed91 Renamed jump.c and jump.h to jumphack.c and jumphack.h ... why? Because they are undesirable hacks used to allow an SDL programmer to execute his/her own code upon program exit.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff changeset
2 * jumphack.c
0a0205afed91 Renamed jump.c and jump.h to jumphack.c and jumphack.h ... why? Because they are undesirable hacks used to allow an SDL programmer to execute his/her own code upon program exit.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff changeset
3 * SDLiPhoneOS
0a0205afed91 Renamed jump.c and jump.h to jumphack.c and jumphack.h ... why? Because they are undesirable hacks used to allow an SDL programmer to execute his/her own code upon program exit.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff changeset
4 *
0a0205afed91 Renamed jump.c and jump.h to jumphack.c and jumphack.h ... why? Because they are undesirable hacks used to allow an SDL programmer to execute his/her own code upon program exit.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff changeset
5 */
0a0205afed91 Renamed jump.c and jump.h to jumphack.c and jumphack.h ... why? Because they are undesirable hacks used to allow an SDL programmer to execute his/her own code upon program exit.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff changeset
6
2446
69ca51fd121d Cleaned up, updated header include path
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents: 2440
diff changeset
7 #include "jumphack.h"
69ca51fd121d Cleaned up, updated header include path
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents: 2440
diff changeset
8
69ca51fd121d Cleaned up, updated header include path
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents: 2440
diff changeset
9 /* see SDL_uikitevents.m for more info */
2440
0a0205afed91 Renamed jump.c and jump.h to jumphack.c and jumphack.h ... why? Because they are undesirable hacks used to allow an SDL programmer to execute his/her own code upon program exit.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff changeset
10
2446
69ca51fd121d Cleaned up, updated header include path
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents: 2440
diff changeset
11 /* stores the information we need to jump back */
2440
0a0205afed91 Renamed jump.c and jump.h to jumphack.c and jumphack.h ... why? Because they are undesirable hacks used to allow an SDL programmer to execute his/her own code upon program exit.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff changeset
12 jmp_buf env;
2446
69ca51fd121d Cleaned up, updated header include path
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents: 2440
diff changeset
13
69ca51fd121d Cleaned up, updated header include path
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents: 2440
diff changeset
14 /* returns the jump environment for setting / getting purposes */
2440
0a0205afed91 Renamed jump.c and jump.h to jumphack.c and jumphack.h ... why? Because they are undesirable hacks used to allow an SDL programmer to execute his/her own code upon program exit.
Holmes Futrell <hfutrell@umail.ucsb.edu>
parents:
diff changeset
15 jmp_buf *jump_env() { return &env; }