Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #if !defined (octave_liboctave_error_h)
00024 #define octave_liboctave_error_h 1
00025
00026 #ifdef __cplusplus
00027 extern "C" {
00028 #endif
00029
00030 extern void liboctave_fatal (const char *fmt, ...) GCC_ATTR_NORETURN;
00031
00032 extern void liboctave_fatal_with_id (const char *id, const char *fmt, ...) GCC_ATTR_NORETURN;
00033
00034 extern void liboctave_warning (const char *fmt, ...);
00035
00036 extern void liboctave_warning_with_id (const char *id, const char *fmt, ...);
00037
00038 typedef void (*liboctave_error_handler) (const char *, ...);
00039
00040 typedef void (*liboctave_error_with_id_handler) (const char *, const char *, ...);
00041
00042 typedef void (*liboctave_warning_handler) (const char *, ...);
00043
00044 typedef void (*liboctave_warning_with_id_handler) (const char *, const char *, ...);
00045
00046
00047
00048 CRUFT_API extern liboctave_error_handler current_liboctave_error_handler;
00049
00050 CRUFT_API extern liboctave_error_with_id_handler current_liboctave_error_with_id_handler;
00051
00052 CRUFT_API extern liboctave_warning_handler current_liboctave_warning_handler;
00053
00054 CRUFT_API extern liboctave_warning_with_id_handler current_liboctave_warning_with_id_handler;
00055
00056 CRUFT_API extern void set_liboctave_error_handler (liboctave_error_handler f);
00057
00058 CRUFT_API extern void set_liboctave_error_with_id_handler (liboctave_error_with_id_handler f);
00059
00060 CRUFT_API extern void set_liboctave_warning_handler (liboctave_warning_handler f);
00061
00062 CRUFT_API extern void set_liboctave_warning_with_id_handler (liboctave_warning_with_id_handler f);
00063
00064 #ifdef __cplusplus
00065 }
00066 #endif
00067
00068 #endif