diff options
Diffstat (limited to 'libc/include/setjmp.h')
-rw-r--r-- | libc/include/setjmp.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libc/include/setjmp.h b/libc/include/setjmp.h new file mode 100644 index 0000000..8fc8a12 --- /dev/null +++ b/libc/include/setjmp.h @@ -0,0 +1,13 @@ +#ifndef __SETJMP_H__ +#define __SETJMP_H__ + +#include <stdint.h> + +typedef struct { + uint32_t buf[32]; +} jmp_buf; + +int setjmp(jmp_buf env); +void longjmp(jmp_buf env, int val); + +#endif |