26 #if defined (HAVE_CONFIG_H)
47 std::string execution_exception::stack_trace (
void)
const
49 std::size_t nframes = m_stack_info.size ();
52 return std::string ();
54 std::ostringstream buf;
56 buf <<
"error: called from\n";
58 for (
const auto& frm : m_stack_info)
60 buf <<
" " << frm.fcn_name ();
62 int line = frm.line ();
66 buf <<
" at line " << line;
68 int column = frm.column ();
71 buf <<
" column " << column;
80 void execution_exception::display (std::ostream& os)
const
82 if (! m_message.empty ())
84 os << m_err_type <<
": " << m_message;
86 if (m_message.back () !=
'\n')
90 std::string st = stack_trace ();
110 throw octave::interrupt_exception ();
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
volatile sig_atomic_t octave_signal_caught
sig_atomic_t octave_interrupt_state
void(* octave_interrupt_hook)(void)
void(* octave_signal_hook)(void)
void octave_handle_signal(void)