Mercurial > hg > octave-nkf
comparison src/toplev.h @ 9383:d57f0c56195f
improve error handling
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Tue, 23 Jun 2009 15:48:40 +0200 |
parents | 1c2d2c9f4a8d |
children | 17af7cce7d1b |
comparison
equal
deleted
inserted
replaced
9382:ab563d2adc10 | 9383:d57f0c56195f |
---|---|
46 typedef void (*octave_exit_func) (int); | 46 typedef void (*octave_exit_func) (int); |
47 extern OCTINTERP_API octave_exit_func octave_exit; | 47 extern OCTINTERP_API octave_exit_func octave_exit; |
48 | 48 |
49 extern OCTINTERP_API bool quit_allowed; | 49 extern OCTINTERP_API bool quit_allowed; |
50 | 50 |
51 // quit is a lot like an interrupt, so we subclass it to simplify possible | 51 extern OCTINTERP_API bool quitting_gracefully; |
52 // handling. | 52 |
53 class octave_quit_exception | 53 extern OCTINTERP_API int exit_status; |
54 : public octave_interrupt_exception | |
55 { | |
56 public: | |
57 int status; | |
58 octave_quit_exception (int s) : status (s) { } | |
59 }; | |
60 | 54 |
61 extern OCTINTERP_API void | 55 extern OCTINTERP_API void |
62 clean_up_and_exit (int); | 56 clean_up_and_exit (int); |
63 | 57 |
64 extern OCTINTERP_API void recover_from_exception (void); | 58 extern OCTINTERP_API void recover_from_exception (void); |