Mercurial > octave
comparison libinterp/octave-value/ov-fcn.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 | d422992b5483 |
children | e8854b8d2486 |
comparison
equal
deleted
inserted
replaced
33344:3606817b9994 | 33345:56d234504c01 |
---|---|
40 #include "symtab.h" | 40 #include "symtab.h" |
41 | 41 |
42 octave_base_value * | 42 octave_base_value * |
43 octave_function::clone () const | 43 octave_function::clone () const |
44 { | 44 { |
45 panic_impossible (); | 45 error ("unexpected call to octave_function::clone - please report this bug"); |
46 } | 46 } |
47 | 47 |
48 octave_base_value * | 48 octave_base_value * |
49 octave_function::empty_clone () const | 49 octave_function::empty_clone () const |
50 { | 50 { |
51 panic_impossible (); | 51 error ("unexpected call to octave_function::empty_clone - please report this bug"); |
52 } | 52 } |
53 | 53 |
54 octave::filepos | 54 octave::filepos |
55 octave_function::beg_pos () const | 55 octave_function::beg_pos () const |
56 { | 56 { |
57 panic_impossible (); | 57 error ("unexpected call to octave_function::beg_pos - please report this bug"); |
58 } | 58 } |
59 | 59 |
60 octave::filepos | 60 octave::filepos |
61 octave_function::end_pos () const | 61 octave_function::end_pos () const |
62 { | 62 { |
63 panic_impossible (); | 63 error ("unexpected call to octave_function::end_pos - please report this bug"); |
64 } | 64 } |
65 | 65 |
66 octave_value_list | 66 octave_value_list |
67 octave_function::call (octave::tree_evaluator& tw, int nargout, | 67 octave_function::call (octave::tree_evaluator& tw, int nargout, |
68 const octave_value_list& args) | 68 const octave_value_list& args) |