Rocket 68
A Motorola 68000 CPU emulator in C
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
9typedef long jmp_buf[8];
10
11int setjmp(jmp_buf env);
12_Noreturn void longjmp(jmp_buf env, int val);
13
14#endif
int setjmp(jmp_buf env)
Definition setjmp_stubs.c:9
long jmp_buf[8]
Definition setjmp.h:9
_Noreturn void longjmp(jmp_buf env, int val)
Definition setjmp_stubs.c:14