1
|
1 // error.h -*- C++ -*- |
|
2 /* |
|
3 |
1009
|
4 Copyright (C) 1992, 1993, 1994, 1995 John W. Eaton |
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 |
|
10 Free Software Foundation; either version 2, or (at your option) any |
|
11 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, write to the Free |
1315
|
20 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
1
|
21 |
|
22 */ |
|
23 |
383
|
24 #if !defined (octave_error_h) |
|
25 #define octave_error_h 1 |
1
|
26 |
|
27 #define panic_impossible() \ |
|
28 panic ("impossible state reached in file `%s' at line %d", \ |
|
29 __FILE__, __LINE__) |
|
30 |
1426
|
31 class string; |
194
|
32 |
1
|
33 extern void message (const char *name, const char *fmt, ...); |
|
34 extern void usage (const char *fmt, ...); |
|
35 extern void warning (const char *fmt, ...); |
|
36 extern void error (const char *fmt, ...); |
1005
|
37 extern void parse_error (const char *fmt, ...); |
1426
|
38 extern void panic (const char *fmt, ...) NORETURN; |
1
|
39 |
143
|
40 // Current error state. |
|
41 extern int error_state; |
|
42 |
672
|
43 // XXX FIXME XXX |
|
44 extern int suppress_octave_error_messages; |
|
45 |
1
|
46 #endif |
|
47 |
|
48 /* |
|
49 ;;; Local Variables: *** |
|
50 ;;; mode: C++ *** |
|
51 ;;; page-delimiter: "^/\\*" *** |
|
52 ;;; End: *** |
|
53 */ |