Mercurial > octave
diff libinterp/octave-value/ov-struct.cc @ 33362:2949b89f9711
replace most uses of panic_impossible with error in octave_value classes
* ov-base-diag.cc, ov-base-mat.cc, ov-base-scalar.cc,
ov-base-sparse.cc, ov-base.cc, ov-bool-mat.cc, ov-cell.cc,
ov-class.cc, ov-cx-mat.cc, ov-fcn-handle.cc, ov-flt-cx-mat.cc,
ov-flt-re-mat.cc, ov-perm.cc, ov-range.cc, ov-re-mat.cc,
ov-str-mat.cc, ov-struct.cc, ov-usr-fcn.cc: Replace all uses of
panic_impossible with error.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 08 Apr 2024 19:39:34 -0400 |
parents | 4b601ca024d5 |
children | 9108c5b24626 |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-struct.cc Mon Apr 08 19:39:04 2024 -0400 +++ b/libinterp/octave-value/ov-struct.cc Mon Apr 08 19:39:34 2024 -0400 @@ -190,7 +190,7 @@ break; default: - panic_impossible (); + error ("unexpected: index not '(', '{', or '.' in octave_struct::subsref - please report this bug"); } // FIXME: perhaps there should be an @@ -259,7 +259,7 @@ break; default: - panic_impossible (); + error ("unexpected: index not '(', '{', or '.' in octave_struct::subsref - please report this bug"); } // FIXME: perhaps there should be an @@ -434,7 +434,7 @@ break; default: - panic_impossible (); + error ("unexpected: index not '(', '{', or '.' in octave_struct::subsasgn - please report this bug"); } } @@ -559,7 +559,7 @@ break; default: - panic_impossible (); + error ("unexpected: index not '(', '{', or '.' in octave_struct::subsasgn - please report this bug"); } retval.maybe_mutate (); @@ -833,7 +833,7 @@ else if (len == 0) m_map = octave_map (dv); else - panic_impossible (); + error ("unexpected: len < 0 in octave_struct::load_ascii - please report this bug"); return success; } @@ -1519,7 +1519,7 @@ else if (len == 0) m_map = octave_scalar_map (); else - panic_impossible (); + error ("unexpected: len < 0 in octave_scalar_struct::load_ascii - please report this bug"); return true; }