Displaying 1 result from an estimated 1 matches for "zz_siglongjmp".
2005 Nov 25
0
[LLVMdev] Re: setjmp/longjmp interoperable between llvm and gcc?
...ative, in which each setjmp
tags the jmpbuf to show which flavor of longjmp is required.
Below is the header file that I defined to wrap the setjmp/longjmp calls.
ZZ_SIGSETJMP augments the jmpbuf with a function pointer to a longjmp
call that is compiled in the same compilation unit as the setjmp.
ZZ_SIGLONGJMP calls through this function pointer.
This way, an llvm-compiled longjmp is used for every longjmp to an
llvm-compiled setjmp; and a gcc-compiled longjmp is used for every
longmp to a gcc-compiled setjmp. C++ exceptions or destructors
wouldn't be handled properly, but that doesn't matter i...