PS2SDK
PS2 Homebrew Libraries
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 /* seems the IOP's sysclib does have one more value than the newlib's version... */
24 #define _JBLEN 12
25 #define _JBTYPE u32
26 
27 typedef _JBTYPE jmp_buf[_JBLEN];
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 extern int setjmp(jmp_buf env);
34 extern void longjmp(jmp_buf env, int val) __attribute__ ((noreturn));
35 
36 #ifdef __cplusplus
37 }
38 #endif
39 
40 #endif /* __SETJMP_H__ */
__attribute__
typedef __attribute__
Definition: tlbfunc.c:60
tamtypes.h