Mercurial > octave
diff libinterp/corefcn/interpreter.cc @ 28433:d05a4194f1ad stable
move make_fcn_handle to tree_evaluator class
* pt-eval.h, pt-eval.cc (tree_evaluator::make_fcn_handle):
New function. Change all uses of global make_fcn_handle to use this
member function instead.
(get_operator_function_name): New function.
* ov-fcn-handle.h, ov-fcn-handle.cc (make_fcn_handle): Deprecate.
Now a wrapper for tree_evaluator::make_fcn_handle.
(octave_fcn_handle::octave_fcn_handle (const std::string& name)):
New constructor.
* interpreter.h, interpreter.cc (interpreter::make_function_handle):
New function.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 15 Apr 2020 23:14:06 -0400 |
parents | 7a8c69c4eb55 |
children | b743a63e2dab c315a866dbe9 |
line wrap: on
line diff
--- a/libinterp/corefcn/interpreter.cc Fri Apr 03 22:00:06 2020 -0400 +++ b/libinterp/corefcn/interpreter.cc Wed Apr 15 23:14:06 2020 -0400 @@ -1577,6 +1577,11 @@ return feval (f_arg, tmp_args, nargout); } + octave_value interpreter::make_function_handle (const std::string& name) + { + return m_evaluator.make_fcn_handle (name); + } + void interpreter::install_variable (const std::string& name, const octave_value& value, bool global) {