Luna/libc/src/setjmp.cpp
apio d00ca0d3ed
All checks were successful
continuous-integration/drone/push Build is passing
libc: Add setjmp.h
Partially taken from pre-rewrite Luna, converted setjmp.asm to GNU assembly.
2023-03-28 19:40:48 +02:00

15 lines
211 B
C++

#include <setjmp.h>
extern "C"
{
int sigsetjmp(sigjmp_buf env, int)
{
return setjmp(env);
}
__noreturn void siglongjmp(sigjmp_buf env, int val)
{
longjmp(env, val);
}
}