Mercurial > octave
diff libcruft/misc/lo-error.h @ 3325:2efa28a91e7a
[project @ 1999-10-29 21:39:20 by jwe]
author | jwe |
---|---|
date | Fri, 29 Oct 1999 21:39:31 +0000 |
parents | 8b262e771614 |
children | 4c8a2e4e0717 |
line wrap: on
line diff
--- a/libcruft/misc/lo-error.h Fri Oct 29 21:33:38 1999 +0000 +++ b/libcruft/misc/lo-error.h Fri Oct 29 21:39:31 1999 +0000 @@ -29,14 +29,22 @@ extern void liboctave_fatal (const char *fmt, ...) GCC_ATTR_NORETURN; +extern void liboctave_warning (const char *fmt, ...); + typedef void (*liboctave_error_handler) (const char *, ...); -/* Would be nice to make this private, but we want to share it among - all the liboctave classes. */ +typedef void (*liboctave_warning_handler) (const char *, ...); + +/* Would be nice to make these pointers private, but we want to share + them among all the liboctave classes. */ extern liboctave_error_handler current_liboctave_error_handler; +extern liboctave_warning_handler current_liboctave_warning_handler; + extern void set_liboctave_error_handler (liboctave_error_handler f); +extern void set_liboctave_warning_handler (liboctave_warning_handler f); + #ifdef __cplusplus } #endif