GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
lo-error.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 1996-2018 John W. Eaton
4 
5 This file is part of Octave.
6 
7 Octave is free software: you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with Octave; see the file COPYING. If not, see
19 <https://www.gnu.org/licenses/>.
20 
21 */
22 
23 #if ! defined (octave_lo_error_h)
24 #define octave_lo_error_h 1
25 
26 #include "octave-config.h"
27 
28 #if defined (__cplusplus)
29 extern "C" {
30 #endif
31 
32 OCTAVE_NORETURN extern void
33 liboctave_fatal (const char *fmt, ...);
34 
35 OCTAVE_NORETURN extern
36 void liboctave_fatal_with_id (const char *id, const char *fmt, ...);
37 
38 extern void
39 liboctave_warning (const char *fmt, ...);
40 
41 extern void
42 liboctave_warning_with_id (const char *id, const char *fmt, ...);
43 
44 typedef void (*liboctave_error_handler) (const char *, ...);
45 
46 typedef void (*liboctave_error_with_id_handler) (const char *, const char *,
47  ...);
48 
49 typedef void (*liboctave_warning_handler) (const char *, ...);
50 
51 typedef void (*liboctave_warning_with_id_handler) (const char *, const char *,
52  ...);
53 
54 /* Would be nice to make these pointers private, but we want to share
55  them among all the liboctave classes. */
56 OCTAVE_NORETURN OCTAVE_API extern liboctave_error_handler
58 
59 OCTAVE_NORETURN OCTAVE_API extern liboctave_error_with_id_handler
61 
63 
64 OCTAVE_API extern liboctave_warning_with_id_handler
66 
67 OCTAVE_API extern void
69 
70 OCTAVE_API extern void
72 
73 OCTAVE_API extern void
75 
76 OCTAVE_API extern void
78 
79 #if defined (__cplusplus)
80 }
81 #endif
82 
83 #endif
void liboctave_warning(const char *fmt,...)
Definition: lo-error.c:125
void liboctave_warning_with_id(const char *id, const char *fmt,...)
Definition: lo-error.c:134
F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE * f
OCTAVE_API void set_liboctave_error_handler(OCTAVE_NORETURN liboctave_error_handler f)
Definition: lo-error.c:64
OCTAVE_NORETURN OCTAVE_API liboctave_error_handler current_liboctave_error_handler
Definition: lo-error.c:38
OCTAVE_API liboctave_warning_with_id_handler current_liboctave_warning_with_id_handler
Definition: lo-error.c:50
OCTAVE_NORETURN OCTAVE_API liboctave_error_with_id_handler current_liboctave_error_with_id_handler
Definition: lo-error.c:42
OCTAVE_API void set_liboctave_error_with_id_handler(OCTAVE_NORETURN liboctave_error_with_id_handler f)
Definition: lo-error.c:73
OCTAVE_NORETURN void liboctave_fatal(const char *fmt,...)
Definition: lo-error.c:101
void(* liboctave_warning_with_id_handler)(const char *, const char *,...)
Definition: lo-error.h:51
OCTAVE_API void set_liboctave_warning_with_id_handler(liboctave_warning_with_id_handler f)
Definition: lo-error.c:92
void(* liboctave_warning_handler)(const char *,...)
Definition: lo-error.h:49
OCTAVE_NORETURN void liboctave_fatal_with_id(const char *id, const char *fmt,...)
Definition: lo-error.c:112
void(* liboctave_error_handler)(const char *,...)
Definition: lo-error.h:44
void(* liboctave_error_with_id_handler)(const char *, const char *,...)
Definition: lo-error.h:46
OCTAVE_API void set_liboctave_warning_handler(liboctave_warning_handler f)
Definition: lo-error.c:83
OCTAVE_API liboctave_warning_handler current_liboctave_warning_handler
Definition: lo-error.c:46