57 error (
"print_usage: invalid function");
71 error (
"API version %s found in .oct file function '%s'\n"
72 " does not match the running Octave (API version %s)\n"
73 " this can lead to incorrect results or other failures\n"
74 " you can fix this problem by recompiling this .oct file",
83 const std::string& file,
const std::string& doc,
153 const std::list<octave_lvalue> *lvalue_list
157 else if (lvalue_list)
160 for (std::list<octave_lvalue>::const_iterator p = lvalue_list->begin ();
161 p != lvalue_list->end (); p++)
164 return ! p->is_black_hole ();
178 const std::list<octave_lvalue> *lvalue_list
184 for (std::list<octave_lvalue>::const_iterator p = lvalue_list->begin ();
185 p != lvalue_list->end () && k < nout; p++)
187 if (p->is_black_hole ())
188 isargout[k++] =
false;
194 isargout[k++] =
true;
199 for (
int i = 0; i < nout; i++)
202 for (
int i =
std::max (nargout, 1); i < nout; i++)
static void install_built_in_function(const std::string &name, const octave_value &fcn)
virtual bool is_mex_function(void) const
octave_value_list(* fcn)(const octave_value_list &, int)
void install_builtin_function(octave_builtin::fcn f, const std::string &name, const std::string &file, const std::string &doc, bool)
octave_shlib get_current_shlib(void)
FloatComplex(* fptr)(const FloatComplex &, float, int, octave_idx_type &)
void error(const char *fmt,...)
std::string name(void) const
octave_value_list feval(const std::string &name, const octave_value_list &args, int nargout)
static octave_function * current(void)
#define OCTAVE_API_VERSION
bool defun_isargout(int nargout, int iout)
F77_RET_T const double const double * f
static const std::list< octave_lvalue > * curr_lvalue_list
octave_shlib get_shlib(void) const
void install_dld_function(octave_dld_function::fcn f, const std::string &name, const octave_shlib &shl, const std::string &doc, bool relative)
octave_shlib get_shlib(void) const
virtual bool is_dld_function(void) const
charNDArray max(char d, const charNDArray &m)
void alias_builtin(const std::string &alias, const std::string &name)
static void alias_built_in_function(const std::string &alias, const std::string &name)
void check_version(const std::string &version, const std::string &fcn)
void install_mex_function(void *fptr, bool fmex, const std::string &name, const octave_shlib &shl, bool relative)
charNDArray min(char d, const charNDArray &m)