ROOT
6.30.04
Reference Guide
All
Namespaces
Files
Pages
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;
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
TException.h
core
base
src
TException.cxx
Generated on Tue May 5 2020 14:02:20 for ROOT by
1.8.5