Mercurial > octave-nkf
comparison libinterp/corefcn/schur.cc @ 20617:ba2b07c13913
use new string_value method to handle value extraction errors
* __dispatch__.cc, balance.cc, colloc.cc, conv2.cc, data.cc, debug.cc,
graphics.cc, input.cc, matrix_type.cc, oct-hist.cc, schur.cc,
spparms.cc, symtab.cc, sysdep.cc, toplev.cc, utils.cc:
Use new string_value method.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 09 Oct 2015 10:06:39 -0400 |
parents | f90c8372b7ba |
children |
comparison
equal
deleted
inserted
replaced
20616:fd0efcdb3718 | 20617:ba2b07c13913 |
---|---|
141 octave_value arg = args(0); | 141 octave_value arg = args(0); |
142 | 142 |
143 std::string ord; | 143 std::string ord; |
144 | 144 |
145 if (nargin == 2) | 145 if (nargin == 2) |
146 { | 146 ord = args(1).string_value ("schur: second argument must be a string"); |
147 if (args(1).is_string ()) | |
148 ord = args(1).string_value (); | |
149 else | |
150 { | |
151 error ("schur: second argument must be a string"); | |
152 return retval; | |
153 } | |
154 } | |
155 | 147 |
156 bool force_complex = false; | 148 bool force_complex = false; |
157 | 149 |
158 if (ord == "real") | 150 if (ord == "real") |
159 { | 151 { |