1
#pragma once
2
3
#include <arch/setjmp.h>
4
5
typedef arch_jmp_buf_t jmp_buf;
6
7
#if defined(__TINYC__)
8
__attribute__((returns_twice)) int setjmp(jmp_buf env);
9
#elif !defined(APHELEIA_SETJMP_NO_MACRO)
10
#define setjmp(env) arch_setjmp(env)
11
#else12
__attribute__((returns_twice)) int setjmp(jmp_buf env);
13
#endif14
15
__attribute__((noreturn)) void longjmp(jmp_buf env, int val);