diff libinterp/corefcn/interpreter.h @ 27160:6b0c61a5a0f0

move global error configuration and status variables inside a class * error.h, error.cc (error_system): New class. (Vbacktrace_on_warning, Vbeep_on_error, Vdebug_on_caught, Vdebug_on_error, Vdebug_on_warning, Vlast_error_id, Vlast_error_message, Vlast_error_stack, Vlast_warning_id, Vlast_warning_message, Vquiet_warning, Vverbose_warning, buffer_error_messages, discard_error_messages, discard_warning_messages, in_try_catch, warning_options): Move global and file-scope static variables inside error_system class. Change all uses. * interpreter.h, interpreter.cc (m_error_system): New member variable. (get_error_system): New function. * interpreter-private.h, interpreter-private.cc (__get_error_system__): New function.
author John W. Eaton <jwe@octave.org>
date Fri, 31 May 2019 15:49:38 +0000
parents 30e9204de313
children 47589e990a27
line wrap: on
line diff
--- a/libinterp/corefcn/interpreter.h	Fri Jun 07 13:29:41 2019 -0400
+++ b/libinterp/corefcn/interpreter.h	Fri May 31 15:49:38 2019 +0000
@@ -35,6 +35,7 @@
 #include "cdef-manager.h"
 #include "dynamic-ld.h"
 #include "environment.h"
+#include "error.h"
 #include "gtk-manager.h"
 #include "help.h"
 #include "input.h"
@@ -160,6 +161,11 @@
       return m_settings;
     }
 
+    error_system& get_error_system (void)
+    {
+      return m_error_system;
+    }
+
     help_system& get_help_system (void)
     {
       return m_help_system;
@@ -414,6 +420,8 @@
 
     settings m_settings;
 
+    error_system m_error_system;
+
     help_system m_help_system;
 
     input_system m_input_system;