ps2sdk  1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
setjmp.h
Go to the documentation of this file.
1 /*
2 # _____ ___ ____ ___ ____
3 # ____| | ____| | | |____|
4 # | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5 #-----------------------------------------------------------------------
6 # Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7 # Licenced under Academic Free License version 2.0
8 # Review ps2sdk README & LICENSE files for further details.
9 */
10 
16 #ifndef __SETJMP_H__
17 #define __SETJMP_H__
18 
19 /* Very simple setjmp support. Have to be tested though. Someone? */
20 
21 #include <tamtypes.h>
22 
23 #ifdef _EE
24 /* we need some room after the gpr, to store some fp registers. */
25 #define _JBLEN 14
26 #define _JBTYPE u128
27 #else
28 /* seems the IOP's sysclib does have one more value than the newlib's version... */
29 #define _JBLEN 12
30 #define _JBTYPE u32
31 #endif
32 
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 int setjmp(jmp_buf env);
40 void longjmp(jmp_buf env, int val) __attribute__ ((noreturn));
41 
42 #ifdef __cplusplus
43 }
44 #endif
45 
46 #endif /* __SETJMP_H__ */
void longjmp(jmp_buf env, int val)
int setjmp(jmp_buf env)
#define _JBTYPE
Definition: setjmp.h:26
#define _JBLEN
Definition: setjmp.h:25
_JBTYPE jmp_buf[_JBLEN]
Definition: setjmp.h:33