initial check-in, version 0.5.0
[musl] / include / setjmp.h
1 #ifndef _SETJMP_H
2 #define _SETJMP_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #include <bits/setjmp.h>
9 typedef unsigned long sigjmp_buf[(1024+sizeof(jmp_buf))/sizeof(long)];
10
11 #ifdef _GNU_SOURCE
12 #define jmp_buf sigjmp_buf
13 #endif
14
15 int setjmp (jmp_buf);
16 int _setjmp (jmp_buf);
17 int sigsetjmp (sigjmp_buf, int);
18
19 void longjmp (jmp_buf, int);
20 void _longjmp (jmp_buf, int);
21 void siglongjmp (sigjmp_buf, int);
22
23 #define setjmp setjmp
24 #define longjmp longjmp
25
26 #ifdef __cplusplus
27 }
28 #endif
29
30 #endif