add new sigc++2 directory
[ardour.git] / libs / glibmm2 / glib / glibmm / exceptionhandler.h
1 // -*- c++ -*-
2 #ifndef _GLIBMM_EXCEPTIONHANDLER_H
3 #define _GLIBMM_EXCEPTIONHANDLER_H
4
5 /* $Id: exceptionhandler.h 291 2006-05-12 08:08:45Z murrayc $ */
6
7 /* exceptionhandler.h
8  *
9  * Copyright 2002 The gtkmm Development Team
10  *
11  * This library is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU Library General Public
13  * License as published by the Free Software Foundation; either
14  * version 2 of the License, or (at your option) any later version.
15  *
16  * This library is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19  * Library General Public License for more details.
20  *
21  * You should have received a copy of the GNU Library General Public
22  * License along with this library; if not, write to the Free
23  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24  */
25
26 #include <sigc++/sigc++.h>
27 #include <glibmmconfig.h>
28
29 #ifdef GLIBMM_EXCEPTIONS_ENABLED
30
31 namespace Glib
32 {
33
34 /** Specify a slot to be called when an exception is thrown by a signal handler.
35  */
36 sigc::connection add_exception_handler(const sigc::slot<void>& slot);
37
38 #ifndef DOXYGEN_SHOULD_SKIP_THIS
39 // internal
40 void exception_handlers_invoke() throw();
41 #endif
42
43 } // namespace Glib
44
45 #endif //GLIBMM_EXCEPTIONS_ENABLED
46
47 #endif /* _GLIBMM_EXCEPTIONHANDLER_H */
48