26 #if defined (HAVE_CONFIG_H)
48 std::string execution_exception::stack_trace ()
const
50 std::size_t nframes = m_stack_info.size ();
53 return std::string ();
55 std::ostringstream buf;
57 buf <<
"error: called from\n";
59 for (
const auto& frm : m_stack_info)
61 buf <<
" " << frm.fcn_name ();
67 buf <<
" at line " <<
line;
69 int column = frm.column ();
72 buf <<
" column " << column;
82 execution_exception::display (std::ostream& os)
const
84 if (! m_message.empty ())
86 os << m_err_type <<
": " << m_message;
88 if (m_message.back () !=
'\n')
92 std::string st = stack_trace ();
100 OCTAVE_END_NAMESPACE(
octave)
116 while (curr_interrupt_state > 0 &&
120 if (curr_interrupt_state > 0)
121 throw octave::interrupt_exception ();
line(const graphics_handle &mh, const graphics_handle &p)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
std::atomic< sig_atomic_t > octave_interrupt_state
void(* octave_interrupt_hook)()
void(* octave_signal_hook)()
volatile std::atomic< bool > octave_signal_caught
void octave_handle_signal()