diff 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
line wrap: on
line diff
--- a/src/toplev.h	Tue Jun 23 14:41:03 2009 -0400
+++ b/src/toplev.h	Tue Jun 23 15:48:40 2009 +0200
@@ -48,15 +48,9 @@
 
 extern OCTINTERP_API bool quit_allowed;
 
-// quit is a lot like an interrupt, so we subclass it to simplify possible
-// handling.
-class octave_quit_exception 
-: public octave_interrupt_exception
-{
-public:
-  int status;
-  octave_quit_exception (int s) : status (s) { }
-};
+extern OCTINTERP_API bool quitting_gracefully;
+
+extern OCTINTERP_API int exit_status;
 
 extern OCTINTERP_API void
 clean_up_and_exit (int);