PatchworkOS
966e257
A non-POSIX operating system.
Theme:
Default
Round
Robot
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)
5
extern
"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
21
typedef
long
jmp_buf
[10];
22
23
_PUBLIC
int
setjmp
(
jmp_buf
env);
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
jmp_buf
long jmp_buf[10]
Definition
setjmp.h:21
longjmp
_PUBLIC void longjmp(jmp_buf env, int value)
setjmp
_PUBLIC int setjmp(jmp_buf env)
config.h
_PUBLIC
#define _PUBLIC
Definition
config.h:41
include
libstd
setjmp.h
Generated on Mon Dec 15 2025 21:55:53 for PatchworkOS by
1.9.8