Merge branch 'master' of git://cadel.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 #if ARCHDIR_is_x86
12 typedef uint32_t        jmp_buf[8];
13 #elif ARCHDIR_is_x86_64
14 typedef uint64_t        jmp_buf[16];
15 #else
16 # error "Unknown Architecture"
17 #endif
18
19 extern int      setjmp(jmp_buf buf);
20 extern void     longjmp(jmp_buf buf, int val);
21
22 #endif
23

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