Mercurial > octave-nkf
comparison liboctave/util/unwind-prot.cc @ 17552:d07d59cc8775
move unwind-protect to liboctave
* liboctave/util/action-container.h, liboctave/util/unwind-prot.cc,
liboctave/util/unwind-prot.h: Move here from libinterp/corefcn.
* unwind-prot.cc (unwind_protect_safe::gripe_exception): Use
current_liboctave_error_handler to handle error message.
* libinterp/corefcn/module.mk, liboctave/util/module.mk:
Update file lists.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 03 Oct 2013 12:31:48 -0400 |
parents | libinterp/corefcn/unwind-prot.cc@68fc671a9339 |
children | d63878346099 |
comparison
equal
deleted
inserted
replaced
17551:8fca0bbdd4c1 | 17552:d07d59cc8775 |
---|---|
1 /* | |
2 | |
3 Copyright (C) 1993-2012 John W. Eaton | |
4 Copyright (C) 2009 VZLU Prague | |
5 | |
6 This file is part of Octave. | |
7 | |
8 Octave is free software; you can redistribute it and/or modify it | |
9 under the terms of the GNU General Public License as published by the | |
10 Free Software Foundation; either version 3 of the License, or (at your | |
11 option) any later version. | |
12 | |
13 Octave is distributed in the hope that it will be useful, but WITHOUT | |
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
16 for more details. | |
17 | |
18 You should have received a copy of the GNU General Public License | |
19 along with Octave; see the file COPYING. If not, see | |
20 <http://www.gnu.org/licenses/>. | |
21 | |
22 */ | |
23 | |
24 #ifdef HAVE_CONFIG_H | |
25 #include <config.h> | |
26 #endif | |
27 | |
28 #include "lo-error.h" | |
29 #include "unwind-prot.h" | |
30 | |
31 void | |
32 unwind_protect_safe::gripe_exception (void) | |
33 { | |
34 // FIXME: can this throw an exception? | |
35 | |
36 (*current_liboctave_error_handler) | |
37 ("internal: unhandled exception in unwind_protect handler"); | |
38 } |