diff libinterp/corefcn/interpreter.h @ 27020:30e9204de313

move feval functions to interpreter class * interpreter.h, interpreter.cc (interpreter::feval): New functions created from global feval functions in oct-parse.yy. Change all uses. * oct-parse.yy (feval): Forward to interpreter::feval functions.
author John W. Eaton <jwe@octave.org>
date Mon, 01 Apr 2019 13:57:10 +0000
parents 6cb675912f2b
children 6b0c61a5a0f0
line wrap: on
line diff
--- a/libinterp/corefcn/interpreter.h	Mon Apr 01 13:11:14 2019 +0000
+++ b/libinterp/corefcn/interpreter.h	Mon Apr 01 13:57:10 2019 +0000
@@ -263,6 +263,28 @@
                               const std::string& try_code,
                               const std::string& catch_code, int nargout);
 
+    octave_value_list
+    feval (const char *name,
+           const octave_value_list& args = octave_value_list (),
+           int nargout = 0);
+
+    octave_value_list
+    feval (const std::string& name,
+           const octave_value_list& args = octave_value_list (),
+           int nargout = 0);
+
+    octave_value_list
+    feval (octave_function *fcn,
+           const octave_value_list& args = octave_value_list (),
+           int nargout = 0);
+
+    octave_value_list
+    feval (const octave_value& f_arg,
+           const octave_value_list& args = octave_value_list (),
+           int nargout = 0);
+
+    octave_value_list feval (const octave_value_list& args, int nargout = 0);
+
     void install_variable (const std::string& name, const octave_value& value,
                            bool global);