Mercurial > hg > octave-lyh
diff src/defun-int.h @ 4234:90e44267e8cf
[project @ 2002-12-21 17:15:25 by jwe]
author | jwe |
---|---|
date | Sat, 21 Dec 2002 17:15:25 +0000 |
parents | e96f52432059 |
children | 042cdbb7f317 |
line wrap: on
line diff
--- a/src/defun-int.h +++ b/src/defun-int.h @@ -42,7 +42,8 @@ extern void install_builtin_function (octave_builtin::fcn f, const std::string& name, - const std::string& doc, bool is_text_fcn = false); + const std::string& doc, bool is_text_fcn = false, + bool can_hide_function = true); extern void install_builtin_variable (const std::string& n, const octave_value& v, @@ -107,6 +108,11 @@ XDEFUN_INTERNAL (name, args_name, nargout_name, is_text_fcn, doc) \ END_INSTALL_BUILTIN +#define DEFCONSTFUN_INTERNAL(name, args_name, nargout_name, is_text_fcn, doc) \ + BEGIN_INSTALL_BUILTIN \ + XDEFCONSTFUN_INTERNAL (name, args_name, nargout_name, is_text_fcn, doc) \ + END_INSTALL_BUILTIN + #define DEFUNX_INTERNAL(name, fname, args_name, nargout_name, \ is_text_fcn, doc) \ BEGIN_INSTALL_BUILTIN \ @@ -161,6 +167,9 @@ #define DEFUN_INTERNAL(name, args_name, nargout_name, is_text_fcn, doc) \ DECLARE_FUN (name, args_name, nargout_name) +#define DEFCONSTFUN_INTERNAL(name, args_name, nargout_name, is_text_fcn, doc) \ + DECLARE_FUN (name, args_name, nargout_name) + #define DEFUNX_INTERNAL(name, fname, args_name, nargout_name, \ is_text_fcn, doc) \ DECLARE_FUNX (fname, args_name, nargout_name)