Merge branch 'master' of git://ted.mutabah.net/acess2
[tpg/acess2.git] / Usermode / Libraries / libc.so_src / include_exp / setjmp.h
1 /*
2  * Acess2 LibC
3  * - By John Hodge (thePowersGang)
4  * 
5  * setjmp.h
6  * - setjmp/longjmp support
7  */
8 #ifndef _LIBC_SETJMP_H_
9 #define _LIBC_SETJMP_H_
10
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14
15 #if defined(__i386__)
16 typedef void    *jmp_buf[8];
17 #elif defined(__amd64__)
18 typedef void    *jmp_buf[16];
19 #else
20 # error "Unknown Architecture"
21 #endif
22
23 extern int      setjmp(jmp_buf buf);
24 extern void     longjmp(jmp_buf buf, int val);
25
26 #ifdef __cplusplus
27 }
28 #endif
29
30 #endif
31

UCC git Repository :: git.ucc.asn.au