ROOT
git-r3/HEAD
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
TException.h
gExceptionHandler
R__EXTERN TExceptionHandler * gExceptionHandler
Definition
TException.h:79
gException
R__EXTERN ExceptionContext_t * gException
Definition
TException.h:69
TExceptionHandler
Definition
TException.h:73
ExceptionContext_t
Definition
TException.h:30
core
base
src
TException.cxx
ROOTgit-r3/HEAD - Reference Guide Generated on
(GVA Time) using Doxygen 1.16.1