Mercurial > octave
comparison libinterp/octave-value/ov-base-diag.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 | 976638dd9021 |
comparison
equal
deleted
inserted
replaced
33361:a5217e6ed309 | 33362:2949b89f9711 |
---|---|
66 error ("%s cannot be indexed with %c", nm.c_str (), type[0]); | 66 error ("%s cannot be indexed with %c", nm.c_str (), type[0]); |
67 } | 67 } |
68 break; | 68 break; |
69 | 69 |
70 default: | 70 default: |
71 panic_impossible (); | 71 error ("unexpected: index not '(', '{', or '.' in octave_base_diag<DMT,MT>::subsref - please report this bug"); |
72 } | 72 } |
73 | 73 |
74 return retval.next_subsref (type, idx); | 74 return retval.next_subsref (type, idx); |
75 } | 75 } |
76 | 76 |
252 retval = tmp.subsasgn (type, idx, rhs); | 252 retval = tmp.subsasgn (type, idx, rhs); |
253 } | 253 } |
254 break; | 254 break; |
255 | 255 |
256 default: | 256 default: |
257 panic_impossible (); | 257 error ("unexpected: index not '(', '{', or '.' in octave_base_diag<DMT,MT>::subsasgn - please report this bug"); |
258 } | 258 } |
259 | 259 |
260 return retval; | 260 return retval; |
261 } | 261 } |
262 | 262 |