changeset 28198:52b2680e091c stable

hide __fltk_check__ function * __init_fltk__.cc (F__fltk_check__): Define without using the DEFMETHOD macro.
author John W. Eaton <jwe@octave.org>
date Wed, 25 Mar 2020 16:46:30 -0400
parents 087bccd1ab49
children 7ac8b3188b27 bc6dae9cbe73
files libinterp/dldfcn/__init_fltk__.cc
diffstat 1 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/dldfcn/__init_fltk__.cc	Thu Mar 19 13:54:03 2020 -0400
+++ b/libinterp/dldfcn/__init_fltk__.cc	Wed Mar 25 16:46:30 2020 -0400
@@ -2484,11 +2484,14 @@
 
 #endif
 
-DEFMETHOD_DLD (__fltk_check__, interp, , ,
-               doc: /* -*- texinfo -*-
-@deftypefn {} {} __fltk_check__ ()
-Undocumented internal function.  Calls Fl::check ()
-@end deftypefn */)
+// This function has the same type signature as a builtin function so
+// that we can create a function handle from it but it is not defined
+// using a DEFMETHOD macro so that it will be omitted from the list of
+// autoloaded functions in the PKG_ADD file and will not be visible to
+// the interpreter.
+
+static octave_value_list
+F__fltk_check__ (octave::interpreter& interp, const octave_value_list&, int)
 {
 #if defined (HAVE_FLTK)
   Fl::check ();