ROOT
v6-24
Reference Guide
Loading...
Searching...
No Matches
TException.cxx
Go to the documentation of this file.
1
// @(#)root/base:$Id$
2
// Author: Fons Rademakers 21/09/95
3
4
/*************************************************************************
5
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6
* All rights reserved. *
7
* *
8
* For the licensing terms see $ROOTSYS/LICENSE. *
9
* For the list of contributors see $ROOTSYS/README/CREDITS. *
10
*************************************************************************/
11
12
/**
13
Exception Handling
14
15
Provide some macro's to simulate the coming C++ try, catch and throw
16
exception handling functionality.
17
*/
18
19
#include "
TException.h
"
20
21
ExceptionContext_t
*
gException
=
nullptr
;
22
23
////////////////////////////////////////////////////////////////////////////////
24
/// If an exception context has been set (using the TRY and RETRY macros)
25
/// jump back to where it was set.
26
27
void
Throw
(
int
code)
28
{
29
if
(
gException
)
30
#ifdef NEED_SIGJMP
31
siglongjmp(
gException
->
fBuf
, code);
32
#else
33
longjmp(
gException
->
fBuf
, code);
34
#endif
35
}
36
37
TExceptionHandler
*
gExceptionHandler
=
nullptr
;
Throw
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
TException.cxx:27
gExceptionHandler
TExceptionHandler * gExceptionHandler
Definition
TException.cxx:37
gException
ExceptionContext_t * gException
Exception Handling.
Definition
TException.cxx:21
TException.h
TExceptionHandler
Definition
TException.h:78
ExceptionContext_t
Definition
TException.h:35
ExceptionContext_t::fBuf
jmp_buf fBuf
Definition
TException.h:39
core
base
src
TException.cxx
ROOT v6-24 - Reference Guide Generated on Tue Aug 22 2023 03:06:13 (GVA Time) using Doxygen 1.9.8