PatchworkOS
Loading...
Searching...
No Matches
setjmp.h
Go to the documentation of this file.
1#ifndef _SETJMP_H
2#define _SETJMP_H 1
3
4#if defined(__cplusplus)
5extern "C"
6{
7#endif
8
9#include "_internal/config.h"
10
11// TODO: Add signal handling and 100 other things
12
13typedef long jmp_buf[10];
14
16_PUBLIC void longjmp(jmp_buf env, int value);
17
18#define _setjmp(env) setjmp(env)
19#define _longjmp(env, value) longjmp(env, value)
20
21#if defined(__cplusplus)
22}
23#endif
24
25#endif
#define _PUBLIC
Definition config.h:41
long jmp_buf[10]
Definition setjmp.h:13
_PUBLIC void longjmp(jmp_buf env, int value)
_PUBLIC int setjmp(jmp_buf env)