Mercurial > octave
diff libinterp/interp-core/defun-int.h @ 15421:cd6ce11b9c57
backout changeset 2e5ba861898f
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 19 Sep 2012 15:13:19 -0400 |
parents | 2e5ba861898f |
children |
line wrap: on
line diff
--- a/libinterp/interp-core/defun-int.h Wed Sep 19 14:38:47 2012 -0400 +++ b/libinterp/interp-core/defun-int.h Wed Sep 19 15:13:19 2012 -0400 @@ -77,23 +77,13 @@ extern OCTINTERP_API void defun_isargout (int, int, bool *); -#define DECLARE_FUNXX(name, args_decl, nargout_decl) \ - OCTAVE_EXPORT octave_value_list name (args_decl, nargout_decl) - #define DECLARE_FUNX(name, args_name, nargout_name) \ - DECLARE_FUNXX (name, \ - const octave_value_list& args_name = octave_value_list (), \ - int nargout_name = 0) - -#define DECLARE_FUNX_NO_DEFAULTS(name, args_name, nargout_name) \ - DECLARE_FUNXX (name, const octave_value_list& args_name, int nargout_name) + OCTAVE_EXPORT octave_value_list \ + name (const octave_value_list& args_name, int nargout_name) #define DECLARE_FUN(name, args_name, nargout_name) \ DECLARE_FUNX (F ## name, args_name, nargout_name) -#define DECLARE_FUN_NO_DEFAULTS(name, args_name, nargout_name) \ - DECLARE_FUNX_NO_DEFAULTS (F ## name, args_name, nargout_name) - // Define the code that will be used to insert the new function into // the symbol table. We look for this name instead of the actual // function so that we can easily install the doc std::string too.