Mercurial > octave
comparison libinterp/parse-tree/oct-lvalue.cc @ 33345:56d234504c01
eliminate some uses of panic_* functions
Replace all uses of panic_* functions that result in compiler warnings
when compiling with NDEBUG with calls to error instead.
Files affected: graphics.cc, mex.cc, stack-frame.cc, ov-base-mat.cc,
ov-fcn.cc, ov.cc, ops.h, lex.ll, oct-lvalue.cc, pt-idx.cc, and
Array-util.cc.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 06 Apr 2024 17:11:35 -0400 |
parents | 2e484f9f1f18 |
children |
comparison
equal
deleted
inserted
replaced
33344:3606817b9994 | 33345:56d234504c01 |
---|---|
166 return tmp.xnumel (octave_value_list ()); | 166 return tmp.xnumel (octave_value_list ()); |
167 } | 167 } |
168 break; | 168 break; |
169 | 169 |
170 default: | 170 default: |
171 panic_impossible (); | 171 error ("unexpected: index not '(', '{', or '.' in octave_lvalue::numel - please report this bug"); |
172 } | 172 } |
173 } | 173 } |
174 | 174 |
175 void | 175 void |
176 octave_lvalue::set_index (const std::string& t, | 176 octave_lvalue::set_index (const std::string& t, |