Mercurial > octave
diff libinterp/corefcn/interpreter.cc @ 29956:a956ca6698d2
move some error handling functions inside octave namespace
* error.h, error.cc (defun_usage_message, set_warning_state,
warning_enabled, disable_warning, interpreter_try):
Move functions inside octave namespace. Deprecated global function
names. Change uses as needed.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 14 Aug 2021 16:27:53 -0400 |
parents | 4c88a452519c |
children | 32c3a5805893 |
line wrap: on
line diff
--- a/libinterp/corefcn/interpreter.cc Sat Aug 14 15:47:41 2021 -0400 +++ b/libinterp/corefcn/interpreter.cc Sat Aug 14 16:27:53 2021 -0400 @@ -2035,12 +2035,12 @@ Fprint_struct_array_contents (octave_value (true)); Fstruct_levels_to_print (octave_value (0)); - disable_warning ("Octave:abbreviated-property-match"); - disable_warning ("Octave:colon-nonscalar-argument"); - disable_warning ("Octave:data-file-in-path"); - disable_warning ("Octave:empty-index"); - disable_warning ("Octave:function-name-clash"); - disable_warning ("Octave:possible-matlab-short-circuit-operator"); + m_error_system.disable_warning ("Octave:abbreviated-property-match"); + m_error_system.disable_warning ("Octave:colon-nonscalar-argument"); + m_error_system.disable_warning ("Octave:data-file-in-path"); + m_error_system.disable_warning ("Octave:empty-index"); + m_error_system.disable_warning ("Octave:function-name-clash"); + m_error_system.disable_warning ("Octave:possible-matlab-short-circuit-operator"); } void interpreter::execute_pkg_add (const std::string& dir)