PatchworkOS  966e257
A non-POSIX operating system.
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/**
12 * @brief Setjmp/Longjmp functions.
13 * @defgroup libstd_setjmp Setjmp/Longjmp
14 * @ingroup libstd
15 *
16 * @todo Add signal handling and 100 other things later.
17 *
18 * @{
19 */
20
21typedef long jmp_buf[10];
22
24_PUBLIC void longjmp(jmp_buf env, int value);
25
26#define _setjmp(env) setjmp(env)
27#define _longjmp(env, value) longjmp(env, value)
28
29/** @} */
30
31#if defined(__cplusplus)
32}
33#endif
34
35#endif
long jmp_buf[10]
Definition setjmp.h:21
_PUBLIC void longjmp(jmp_buf env, int value)
_PUBLIC int setjmp(jmp_buf env)
#define _PUBLIC
Definition config.h:41