src/video/uikit/jumphack.c
author Holmes Futrell <hfutrell@umail.ucsb.edu>
Sat, 16 Aug 2008 00:18:40 +0000
branchgsoc2008_iphone
changeset 2453 ac67f7719ba8
parent 2446 69ca51fd121d
permissions -rw-r--r--
removed NULL comment ... it's UIKit now, not NULL
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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; }