11#ifndef CPYCPPYY_SIGNALTRYCATCH_H
12#define CPYCPPYY_SIGNALTRYCATCH_H
25#ifndef NO_CPPYY_LEGACY_NAMESPACE
35#ifndef NO_CPPYY_LEGACY_NAMESPACE
44# define CLING_EXCEPTION_SETJMP(buf) sigsetjmp(buf,1)
46# define CLING_EXCEPTION_SETJMP(buf) setjmp(buf)
49#define CLING_EXCEPTION_RETRY \
51 static CppyyExceptionContext_t R__curr, *R__old = gException; \
53 gException = &R__curr; \
54 R__code = CLING_EXCEPTION_SETJMP(gException->fBuf); if (R__code) { }; {
56#define CLING_EXCEPTION_TRY \
58 static CppyyExceptionContext_t R__curr, *R__old = gException; \
60 gException = &R__curr; \
61 if ((R__code = CLING_EXCEPTION_SETJMP(gException->fBuf)) == 0) {
63#define CLING_EXCEPTION_CATCH(n) \
64 gException = R__old; \
69#define CLING_EXCEPTION_ENDTRY \
71 gException = R__old; \
CppyyLegacy::ExceptionContext_t CppyyExceptionContext_t
R__EXTERN ExceptionContext_t * gException