Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TException.h File Reference
#include <setjmp.h>
#include <ROOT/RConfig.hxx>
#include "DllImport.h"
Include dependency graph for TException.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  ExceptionContext_t
 
class  TExceptionHandler
 

Macros

#define CATCH(n)
 
#define ENDTRY
 
#define RETRY
 
#define SETJMP(buf)   setjmp(buf)
 
#define TRY
 

Functions

R__EXTERN void Throw (int code)
 If an exception context has been set (using the TRY and RETRY macros) jump back to where it was set.
 

Variables

R__EXTERN ExceptionContext_tgException
 
R__EXTERN TExceptionHandlergExceptionHandler
 

Macro Definition Documentation

◆ CATCH

#define 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 58 of file TException.h.

◆ ENDTRY

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

Definition at line 64 of file TException.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 TException.h:41

Definition at line 44 of file TException.h.

◆ SETJMP

#define SETJMP (   buf)    setjmp(buf)

Definition at line 41 of file TException.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 51 of file TException.h.

Function Documentation

◆ Throw()

R__EXTERN void Throw ( int  code)

If an exception context has been set (using the TRY and RETRY macros) jump back to where it was set.

Definition at line 27 of file TException.cxx.

Variable Documentation

◆ gException

Definition at line 69 of file TException.h.

◆ gExceptionHandler

R__EXTERN TExceptionHandler* gExceptionHandler

Definition at line 79 of file TException.h.