diff libinterp/corefcn/input.cc @ 21127:df7891224709

maint: Use "return ovl (...)" in DEFUN macros. * cellfun.cc, data.cc, debug.cc, defaults.cc, det.cc, dirfns.cc, dlmread.cc, error.cc, file-io.cc, getrusage.cc, graphics.cc, help.cc, input.cc, inv.cc, kron.cc, load-path.cc, pager.cc, pinv.cc, rand.cc, strfns.cc, urlwrite.cc, chol.cc, ov-classdef.cc, ov-struct.cc: Use "return ovl (...)" in DEFUN macros, rather than "return octave_value (...)".
author Rik <rik@octave.org>
date Thu, 21 Jan 2016 09:47:50 -0800
parents e39e05d90788
children fcac5dbbf9ed
line wrap: on
line diff
--- a/libinterp/corefcn/input.cc	Thu Jan 21 11:24:36 2016 -0500
+++ b/libinterp/corefcn/input.cc	Thu Jan 21 09:47:50 2016 -0800
@@ -852,7 +852,7 @@
   if (nargin == 1)
     prompt = args(0).xstring_value ("yes_or_no: PROMPT must be a string");
 
-  return octave_value (octave_yes_or_no (prompt));
+  return ovl (octave_yes_or_no (prompt));
 }
 
 octave_value
@@ -1250,7 +1250,7 @@
 
   input_event_hook_functions.insert (hook_fcn.id (), hook_fcn);
 
-  return octave_value (hook_fcn.id ());
+  return ovl (hook_fcn.id ());
 }
 
 DEFUN (remove_input_event_hook, args, ,