Displaying 1 result from an estimated 1 matches for "zz_sigjmp_buf".
2005 Nov 25
0
[LLVMdev] Re: setjmp/longjmp interoperable between llvm and gcc?
...e setjmp/longjmp.
Regards,
... kurt
/*-------------setjmpwrapper.h-------------*/
#include <setjmp.h>
/* llvm doesn't support sigsetjmp; use plain setjmp instead */
#undef sigsetjmp
#define sigjmp_buf jmp_buf
#define sigsetjmp(x,y) setjmp(x)
#define siglongjmp longjmp
typedef struct ZZ_SIGJMP_BUF
{
void (*zz_siglongjmp)(struct ZZ_SIGJMP_BUF *self, int value)
__attribute__((__noreturn__));
sigjmp_buf jmpbuf;
} ZZ_SIGJMP_BUF;
static void
zz_siglongjmp(struct ZZ_SIGJMP_BUF *self, int value)
__attribute__((__noreturn__))
__attribut...