Rocket 68
A Motorola 68000 CPU emulator in C
Toggle main menu visibility
Loading...
Searching...
No Matches
setjmp.h
Go to the documentation of this file.
1
/* A minimal setjmp.h for WASM builds on Zig 0.16 and later, shadowing
2
* musl's header. musl's setjmp.h requires the wasm exception-handling
3
* feature, and Zig 0.16.0's bundled clang crashes while compiling musl's
4
* EH-based setjmp runtime (libc-top-half/musl/src/setjmp/wasm32/rt.c).
5
* The implementations are the stubs in src/wasm_compat/setjmp_stubs.c. */
6
#ifndef _SETJMP_H
7
#define _SETJMP_H
8
9
typedef
long
jmp_buf
[8];
10
11
int
setjmp
(
jmp_buf
env);
12
_Noreturn
void
longjmp
(
jmp_buf
env,
int
val);
13
14
#endif
setjmp
int setjmp(jmp_buf env)
Definition
setjmp_stubs.c:9
jmp_buf
long jmp_buf[8]
Definition
setjmp.h:9
longjmp
_Noreturn void longjmp(jmp_buf env, int val)
Definition
setjmp_stubs.c:14
src
wasm_compat
setjmp.h
Generated by
1.17.0