GNU Octave  6.2.0
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_interrupt_exception (void)
 

Variables

OCTAVE_API sig_atomic_t octave_exception_state
 
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

#define BEGIN_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE
Value:
do \
{

Definition at line 280 of file quit.h.

◆ END_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE

#define END_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE
Value:
} \
while (0)

Definition at line 284 of file quit.h.

◆ 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: quit.cc:47

Definition at line 261 of file quit.h.

Enumeration Type Documentation

◆ octave_exception

Enumerator
octave_no_exception 
octave_exec_exception 
octave_alloc_exception 
octave_quit_exception 

Definition at line 211 of file quit.h.

Function Documentation

◆ octave_handle_signal()

OCTAVE_API void octave_handle_signal ( void  )

Definition at line 121 of file quit.cc.

References octave_interrupt_state, and octave_signal_hook.

◆ octave_rethrow_exception()

OCTAVE_API void octave_rethrow_exception ( void  )

◆ octave_throw_bad_alloc()

OCTAVE_NORETURN OCTAVE_API 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()

OCTAVE_NORETURN OCTAVE_API 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()

OCTAVE_NORETURN OCTAVE_API void octave_throw_interrupt_exception ( void  )

Definition at line 136 of file quit.cc.

References octave_interrupt_hook.

Variable Documentation

◆ octave_exception_state

OCTAVE_API sig_atomic_t octave_exception_state
extern

Definition at line 42 of file quit.cc.

◆ octave_interrupt_state

◆ octave_signal_caught

OCTAVE_API volatile sig_atomic_t octave_signal_caught
extern