diff libinterp/corefcn/defun-int.h @ 23452:0af6dbede266

also use DEFUN macros for local function declarations * defun-int.h (DECLARE_STATIC_FUN, DECLARE_STATIC_FUNX): New macros. * graphics.cc (waitfor_listener, waitfor_del_listener): Use DECLARE_STATIC_FUNX for definition.
author John W. Eaton <jwe@octave.org>
date Fri, 28 Apr 2017 13:59:51 -0400
parents 092078913d54
children 8744d4ed8fb4
line wrap: on
line diff
--- a/libinterp/corefcn/defun-int.h	Fri Apr 28 11:53:54 2017 -0400
+++ b/libinterp/corefcn/defun-int.h	Fri Apr 28 13:59:51 2017 -0400
@@ -111,6 +111,13 @@
 #define DECLARE_FUN(name, args_name, nargout_name)      \
   DECLARE_FUNX (F ## name, args_name, nargout_name)
 
+#define DECLARE_STATIC_FUNX(name, args_name, nargout_name)      \
+  static octave_value_list                                      \
+  name (const octave_value_list& args_name, int nargout_name)
+
+#define DECLARE_STATIC_FUN(name, args_name, nargout_name)       \
+  DECLARE_FUNX (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.