Mercurial > jwe > octave
annotate liboctave/util/unwind-prot.cc @ 21141:34368609f62b
fix event-queue and unwind-protect exception warnings
* event-queue.h (event_queue_safe::warn_unhandled_exception):
New function.
(event_queue_safe::gripe_exception): Delete decl.
* event-queue.cc: New file.
(event_queue_safe::warn_unhandled_exception): New function.
* libinterp/corefcn/module.mk (COREFCN_SRC): Add it to the list
* unwind-prot.cc, unwind-prot.h
(unwind_protect_safe::warn_unhandled_exception): Rename from
unwind_protect_safe::warn_unhandled_exception. No longer static.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 25 Jan 2016 19:39:58 -0500 |
parents | 7cac4e7458f2 |
children | f7121e111991 |
rev | line source |
---|---|
1 | 1 /* |
2 | |
19697
4197fc428c7d
maint: Update copyright notices for 2015.
John W. Eaton <jwe@octave.org>
parents:
17744
diff
changeset
|
3 Copyright (C) 1993-2015 John W. Eaton |
9376
d58086453171
refactor unwind_protect
Jaroslav Hajek <highegg@gmail.com>
parents:
8920
diff
changeset
|
4 Copyright (C) 2009 VZLU Prague |
1 | 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 | |
7016 | 10 Free Software Foundation; either version 3 of the License, or (at your |
11 option) any later version. | |
1 | 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 | |
7016 | 19 along with Octave; see the file COPYING. If not, see |
20 <http://www.gnu.org/licenses/>. | |
1 | 21 |
22 */ | |
23 | |
240 | 24 #ifdef HAVE_CONFIG_H |
1192 | 25 #include <config.h> |
1 | 26 #endif |
27 | |
17552
d07d59cc8775
move unwind-protect to liboctave
John W. Eaton <jwe@octave.org>
parents:
16892
diff
changeset
|
28 #include "lo-error.h" |
1 | 29 #include "unwind-prot.h" |
30 | |
17552
d07d59cc8775
move unwind-protect to liboctave
John W. Eaton <jwe@octave.org>
parents:
16892
diff
changeset
|
31 void |
21141
34368609f62b
fix event-queue and unwind-protect exception warnings
John W. Eaton <jwe@octave.org>
parents:
21136
diff
changeset
|
32 unwind_protect_safe::warn_unhandled_exception (void) const |
2985 | 33 { |
21141
34368609f62b
fix event-queue and unwind-protect exception warnings
John W. Eaton <jwe@octave.org>
parents:
21136
diff
changeset
|
34 (*current_liboctave_warning_handler) |
34368609f62b
fix event-queue and unwind-protect exception warnings
John W. Eaton <jwe@octave.org>
parents:
21136
diff
changeset
|
35 ("unhandled exception in unwind_protect_safe handler. " |
34368609f62b
fix event-queue and unwind-protect exception warnings
John W. Eaton <jwe@octave.org>
parents:
21136
diff
changeset
|
36 "It is a bug in Octave for this to happen. " |
34368609f62b
fix event-queue and unwind-protect exception warnings
John W. Eaton <jwe@octave.org>
parents:
21136
diff
changeset
|
37 "Please help improve Octave by reporting it."); |
1 | 38 } |