Mercurial > octave
diff libinterp/corefcn/error.h @ 27472:c0883bfc0f36
simplify evaluator logic for try-catch command
* pt-eval.cc (tree_evaluator::visit_try_catch_command):
Simplify function logic.
* error.h, error.cc (make_stack_map, make_stack_frame_list): Now
public static functions in the error_system class. Change all uses.
(bt_fieldnames, bt_fields): Move inside octave namespace.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 04 Oct 2019 14:13:06 -0400 |
parents | fd32c1a9b1bd |
children | b442ec6dda5c |
line wrap: on
line diff
--- a/libinterp/corefcn/error.h Fri Oct 04 01:15:13 2019 -0400 +++ b/libinterp/corefcn/error.h Fri Oct 04 14:13:06 2019 -0400 @@ -234,6 +234,12 @@ return val; } + static octave_map + make_stack_map (const std::list<octave::frame_info>& frames); + + static std::list<octave::frame_info> + make_stack_frame_list (const octave_map& stack); + //! For given warning ID, return 0 if warnings are disabled, 1 if //! enabled, and 2 if the given ID should be an error instead of a //! warning.