GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
interpreter.cc File Reference
#include <cstdio>
#include <clocale>
#include <iostream>
#include <set>
#include <string>
#include <thread>
#include "cmd-edit.h"
#include "cmd-hist.h"
#include "file-ops.h"
#include "file-stat.h"
#include "fpucw-wrappers.h"
#include "lo-blas-proto.h"
#include "lo-error.h"
#include "lo-sysdep.h"
#include "oct-env.h"
#include "quit.h"
#include "str-vec.h"
#include "signal-wrappers.h"
#include "unistd-wrappers.h"
#include "builtin-defun-decls.h"
#include "defaults.h"
#include "Cell.h"
#include "defun.h"
#include "display.h"
#include "error.h"
#include "event-manager.h"
#include "graphics.h"
#include "help.h"
#include "input.h"
#include "interpreter-private.h"
#include "interpreter.h"
#include "load-path.h"
#include "load-save.h"
#include "octave.h"
#include "oct-hist.h"
#include "oct-map.h"
#include "oct-mutex.h"
#include "ovl.h"
#include "ov.h"
#include "ov-classdef.h"
#include "parse.h"
#include "pt-classdef.h"
#include "pt-eval.h"
#include "pt-jump.h"
#include "pt-stmt.h"
#include "settings.h"
#include "sighandlers.h"
#include "sysdep.h"
#include "unwind-prot.h"
#include "utils.h"
#include "variables.h"
#include "version.h"

Go to the source code of this file.

Namespaces

 octave
 

Macros

#define OCTAVE_IGNORE_EXCEPTION(E)
 
#define OCTAVE_SAFE_CALL(F, ARGS)
 

Functions

octave_value_list octave::F__traditional__ (octave::interpreter &interp, const octave_value_list &, int)
 
octave_value_list octave::F__version_info__ (const octave_value_list &args, int)
 
octave_value_list octave::Fatexit (octave::interpreter &interp, const octave_value_list &args, int nargout)
 
octave_value_list octave::Fquit (octave::interpreter &interp, const octave_value_list &args, int)
 

Variables

std::atomic< bool > octave_initialized {false}
 
bool octave_interpreter_ready = false
 
bool quit_allowed = true
 
sys::time octave::Vlast_chdir_time = 0.0
 

Macro Definition Documentation

◆ OCTAVE_IGNORE_EXCEPTION

#define OCTAVE_IGNORE_EXCEPTION (   E)
Value:
catch (E) \
{ \
recover_from_exception (); \
\
std::cerr << "error: ignoring " #E " while preparing to exit" \
<< std::endl; \
}

Definition at line 916 of file interpreter.cc.

◆ OCTAVE_SAFE_CALL

#define OCTAVE_SAFE_CALL (   F,
  ARGS 
)
Value:
do \
{ \
try \
{ \
unwind_action restore_debug_on_error \
(&error_system::set_debug_on_error, &m_error_system, \
m_error_system.debug_on_error ()); \
\
unwind_action restore_debug_on_warning \
(&error_system::set_debug_on_warning, &m_error_system, \
m_error_system.debug_on_warning ()); \
\
m_error_system.debug_on_error (false); \
m_error_system.debug_on_warning (false); \
\
F ARGS; \
} \
OCTAVE_IGNORE_EXCEPTION (const exit_exception&) \
OCTAVE_IGNORE_EXCEPTION (const interrupt_exception&) \
OCTAVE_IGNORE_EXCEPTION (const execution_exception&) \
OCTAVE_IGNORE_EXCEPTION (const std::bad_alloc&) \
} \
while (0)
void set_debug_on_warning(bool flag)
Definition: error.h:86
void set_debug_on_error(bool flag)
Definition: error.h:58

Definition at line 925 of file interpreter.cc.

Variable Documentation

◆ octave_initialized

std::atomic<bool> octave_initialized {false}

Definition at line 95 of file interpreter.cc.

Referenced by interpreter::initialize().

◆ octave_interpreter_ready

bool octave_interpreter_ready = false

Definition at line 92 of file interpreter.cc.

◆ quit_allowed

bool quit_allowed = true