Logo ROOT   6.18/05
Reference Guide
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/**
13Exception Handling
14
15Provide some macro's to simulate the coming C++ try, catch and throw
16exception handling functionality.
17*/
18
19#include "TException.h"
20
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
27void 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
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
ExceptionContext_t * gException
Exception Handling.
Definition: TException.cxx:21