Logo ROOT  
Reference Guide
SignalTryCatch.h File Reference
#include <setjmp.h>
#include "CPyCppyy/CommonDefs.h"
Include dependency graph for SignalTryCatch.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  ExceptionContext_t
 

Macros

#define CATCH(n)
 
#define ENDTRY
 
#define NEED_SIGJMP   1
 
#define RETRY
 
#define SETJMP(buf)   sigsetjmp(buf,1)
 
#define TRY
 

Variables

CPYCPPYY_IMPORT ExceptionContext_tgException
 

Macro Definition Documentation

◆ CATCH

#define CATCH (   n)
Value:
gException = R__old; \
} else { \
int n = R__code; \
gException = R__old;
CPYCPPYY_IMPORT ExceptionContext_t * gException
const Int_t n
Definition: legend1.C:16

Definition at line 49 of file SignalTryCatch.h.

◆ ENDTRY

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

Definition at line 55 of file SignalTryCatch.h.

◆ NEED_SIGJMP

#define NEED_SIGJMP   1

Definition at line 18 of file SignalTryCatch.h.

◆ RETRY

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

Definition at line 35 of file SignalTryCatch.h.

◆ SETJMP

#define SETJMP (   buf)    sigsetjmp(buf,1)

Definition at line 30 of file SignalTryCatch.h.

◆ TRY

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

Definition at line 42 of file SignalTryCatch.h.

Variable Documentation

◆ gException

Definition at line 60 of file SignalTryCatch.h.