GNU Octave  8.1.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)
 

Variables

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 266 of file quit.h.

◆ END_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE

#define END_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE
Value:
} \
while (0)

Definition at line 270 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:40

Definition at line 247 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 212 of file quit.h.

Function Documentation

◆ octave_handle_signal()

OCTAVE_API void octave_handle_signal ( void  )

Definition at line 101 of file quit.cc.

References octave_interrupt_state, and octave_signal_hook.

Variable Documentation

◆ octave_interrupt_state

◆ octave_signal_caught

OCTAVE_API volatile sig_atomic_t octave_signal_caught
extern

Definition at line 40 of file quit.cc.

Referenced by generic_sig_handler(), and interpreter::recover_from_exception().