Mercurial > octave
view examples/code/funcdemo.cc @ 31210:9ad55d2e1bbf stable
Make sure we don't pass short 8.3 path to latex on Windows (bug #62779).
* latex-text-renderer.cc (latex_renderer::write_tex_file): On Windows, use
canonicalized path of temporary directory.
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Sun, 28 Aug 2022 22:44:49 +0200 |
parents | d7e4d9b383ff |
children |
line wrap: on
line source
#include <octave/oct.h> #include <octave/parse.h> DEFMETHOD_DLD (funcdemo, interp, args, nargout, "Function Demo") { int nargin = args.length (); if (nargin < 2) print_usage (); octave_value_list newargs; for (octave_idx_type i = nargin - 1; i > 0; i--) newargs(i-1) = args(i); octave_value_list retval; if (args(0).is_function_handle () || args(0).is_inline_function () || args(0).is_string ()) retval = interp.feval (args(0), newargs, nargout); else error ("funcdemo: INPUT must be string, inline, or function handle"); return retval; }