Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
SignalTryCatch.h File Reference
#include <setjmp.h>
#include "CPyCppyy/CommonDefs.h"

Classes

struct  CppyyLegacy::ExceptionContext_t

Namespaces

namespace  CppyyLegacy

Macros

#define CLING_EXCEPTION_CATCH(n)
#define CLING_EXCEPTION_ENDTRY
#define CLING_EXCEPTION_RETRY
#define CLING_EXCEPTION_SETJMP(buf)
#define CLING_EXCEPTION_TRY
#define NEED_SIGJMP   1

Typedefs

using CppyyExceptionContext_t = CppyyLegacy::ExceptionContext_t

Variables

CppyyExceptionContext_tgException
 Exception Handling.

Macro Definition Documentation

◆ CLING_EXCEPTION_CATCH

#define CLING_EXCEPTION_CATCH ( n)
Value:
gException = R__old; \
} else { \
int n = R__code; \
gException = R__old;
R__EXTERN ExceptionContext_t * gException
Definition TException.h:69
const Int_t n
Definition legend1.C:16

Definition at line 63 of file SignalTryCatch.h.

◆ CLING_EXCEPTION_ENDTRY

#define CLING_EXCEPTION_ENDTRY
Value:
} \
gException = R__old; \
}

Definition at line 69 of file SignalTryCatch.h.

◆ CLING_EXCEPTION_RETRY

#define CLING_EXCEPTION_RETRY
Value:
{ \
static CppyyExceptionContext_t R__curr, *R__old = gException; \
int R__code; \
gException = &R__curr; \
R__code = CLING_EXCEPTION_SETJMP(gException->fBuf); if (R__code) { }; {
CppyyLegacy::ExceptionContext_t CppyyExceptionContext_t
#define CLING_EXCEPTION_SETJMP(buf)

Definition at line 49 of file SignalTryCatch.h.

◆ CLING_EXCEPTION_SETJMP

#define CLING_EXCEPTION_SETJMP ( buf)
Value:
sigsetjmp(buf,1)

Definition at line 44 of file SignalTryCatch.h.

◆ CLING_EXCEPTION_TRY

#define CLING_EXCEPTION_TRY
Value:
{ \
static CppyyExceptionContext_t R__curr, *R__old = gException; \
int R__code; \
gException = &R__curr; \
if ((R__code = CLING_EXCEPTION_SETJMP(gException->fBuf)) == 0) {

Definition at line 56 of file SignalTryCatch.h.

◆ NEED_SIGJMP

#define NEED_SIGJMP   1

Definition at line 18 of file SignalTryCatch.h.

Typedef Documentation

◆ CppyyExceptionContext_t

Variable Documentation

◆ gException

CppyyExceptionContext_t* gException
extern

Exception Handling.

Provide some macro's to simulate the coming C++ try, catch and throw exception handling functionality.

Definition at line 69 of file TException.h.