GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
quit.h File Reference
#include "octave-config.h"
#include <signal.h>
Include dependency graph for quit.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BEGIN_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE
 
#define END_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE
 
#define OCTAVE_QUIT
 

Enumerations

enum  octave_exception { octave_no_exception = 0, octave_exec_exception = 1, octave_alloc_exception = 3, octave_quit_exception = 4 }
 

Functions

OCTAVE_API void octave_handle_signal (void)
 
OCTAVE_API void octave_rethrow_exception (void)
 
OCTAVE_NORETURN OCTAVE_API void octave_throw_bad_alloc (void)
 
OCTAVE_NORETURN OCTAVE_API void octave_throw_execution_exception (void)
 
OCTAVE_NORETURN OCTAVE_API void octave_throw_exit_exception (int exit_status, int safe_to_return)
 
OCTAVE_NORETURN OCTAVE_API void octave_throw_interrupt_exception (void)
 

Variables

OCTAVE_API sig_atomic_t octave_exception_state
 
OCTAVE_API sig_atomic_t octave_exit_exception_safe_to_return
 
OCTAVE_API sig_atomic_t octave_exit_exception_status
 
OCTAVE_API sig_atomic_t octave_interrupt_state
 
OCTAVE_API volatile sig_atomic_t octave_signal_caught
 

Macro Definition Documentation

◆ BEGIN_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE

◆ END_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE

◆ OCTAVE_QUIT

#define OCTAVE_QUIT
Value:
do \
{ \
{ \
octave_signal_caught = 0; \
octave_handle_signal (); \
} \
} \
while (0)
OCTAVE_API volatile sig_atomic_t octave_signal_caught
Definition: cquit.c:49

Definition at line 193 of file quit.h.

Referenced by F__betainc__(), F__expint__(), and F__gammainc__().

Enumeration Type Documentation

◆ octave_exception

Enumerator
octave_no_exception 
octave_exec_exception 
octave_alloc_exception 
octave_quit_exception 

Definition at line 135 of file quit.h.

Function Documentation

◆ octave_handle_signal()

OCTAVE_API void octave_handle_signal ( void  )

◆ octave_rethrow_exception()

◆ octave_throw_bad_alloc()

OCTAVE_NORETURN OCTAVE_API void octave_throw_bad_alloc ( void  )

Definition at line 77 of file quit.cc.

References octave_alloc_exception, octave_bad_alloc_hook, and octave_exception_state.

Referenced by octave_rethrow_exception().

◆ octave_throw_execution_exception()

OCTAVE_NORETURN OCTAVE_API void octave_throw_execution_exception ( void  )

Definition at line 67 of file quit.cc.

References octave_exception_state, and octave_exec_exception.

Referenced by octave_rethrow_exception().

◆ octave_throw_exit_exception()

OCTAVE_NORETURN OCTAVE_API void octave_throw_exit_exception ( int  exit_status,
int  safe_to_return 
)

Definition at line 88 of file quit.cc.

References octave_exception_state, and octave_quit_exception.

Referenced by octave_rethrow_exception().

◆ octave_throw_interrupt_exception()

OCTAVE_NORETURN OCTAVE_API void octave_throw_interrupt_exception ( void  )

Definition at line 58 of file quit.cc.

References octave_interrupt_hook.

Referenced by octave_handle_signal(), and octave_rethrow_exception().

Variable Documentation

◆ octave_exception_state

OCTAVE_API sig_atomic_t octave_exception_state

◆ octave_exit_exception_safe_to_return

OCTAVE_API sig_atomic_t octave_exit_exception_safe_to_return

Definition at line 43 of file cquit.c.

Referenced by octave_rethrow_exception().

◆ octave_exit_exception_status

OCTAVE_API sig_atomic_t octave_exit_exception_status

Definition at line 41 of file cquit.c.

Referenced by octave_rethrow_exception().

◆ octave_interrupt_state

◆ octave_signal_caught

OCTAVE_API volatile sig_atomic_t octave_signal_caught