GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
quit.cc File Reference
#include <cstring>
#include <ostream>
#include <sstream>
#include <new>
#include "quit.h"
Include dependency graph for quit.cc:

Go to the source code of this file.

Namespaces

 octave
 

Enumerations

enum  octave_internal_exception { octave_internal_no_exception = 0 , octave_internal_exec_exception = 1 , octave_internal_alloc_exception = 3 , octave_internal_quit_exception = 4 }
 

Functions

void octave_handle_signal (void)
 
void octave_rethrow_exception (void)
 
void octave_throw_bad_alloc (void)
 
void octave_throw_execution_exception (void)
 
void octave_throw_interrupt_exception (void)
 

Variables

static sig_atomic_t internal_exception_state
 
void(* octave_bad_alloc_hook )(void) = nullptr
 
sig_atomic_t octave_exception_state = 0
 
void(* octave_interrupt_hook )(void) = nullptr
 
sig_atomic_t octave_interrupt_state = 0
 
volatile sig_atomic_t octave_signal_caught = 0
 
void(* octave_signal_hook )(void) = nullptr
 

Enumeration Type Documentation

◆ octave_internal_exception

Enumerator
octave_internal_no_exception 
octave_internal_exec_exception 
octave_internal_alloc_exception 
octave_internal_quit_exception 

Definition at line 58 of file quit.cc.

Function Documentation

◆ octave_handle_signal()

void octave_handle_signal ( void  )

Definition at line 121 of file quit.cc.

References octave_interrupt_state, and octave_signal_hook.

◆ octave_rethrow_exception()

void octave_rethrow_exception ( void  )

◆ octave_throw_bad_alloc()

void octave_throw_bad_alloc ( void  )

Definition at line 157 of file quit.cc.

References internal_exception_state, and octave_internal_alloc_exception.

◆ octave_throw_execution_exception()

void octave_throw_execution_exception ( void  )

Definition at line 146 of file quit.cc.

References internal_exception_state, and octave_internal_exec_exception.

◆ octave_throw_interrupt_exception()

void octave_throw_interrupt_exception ( void  )

Definition at line 136 of file quit.cc.

References octave_interrupt_hook.

Variable Documentation

◆ internal_exception_state

sig_atomic_t internal_exception_state
static

◆ octave_bad_alloc_hook

void(* octave_bad_alloc_hook) (void) ( void  ) = nullptr

Definition at line 53 of file quit.cc.

◆ octave_exception_state

sig_atomic_t octave_exception_state = 0

Definition at line 42 of file quit.cc.

◆ octave_interrupt_hook

void(* octave_interrupt_hook) (void) ( void  ) = nullptr

Definition at line 50 of file quit.cc.

Referenced by octave::interpreter::initialize(), and octave_throw_interrupt_exception().

◆ octave_interrupt_state

◆ octave_signal_caught

volatile sig_atomic_t octave_signal_caught = 0

◆ octave_signal_hook

void(* octave_signal_hook) (void) ( void  ) = nullptr

Definition at line 49 of file quit.cc.

Referenced by octave::interpreter::initialize(), and octave_handle_signal().