GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
interpreter.cc File Reference
#include <cstdio>
#include <set>
#include <string>
#include <iostream>
#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 "oct-env.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 "file-io.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"
Include dependency graph for interpreter.cc:

Go to the source code of this file.

Namespaces

 octave
 

Macros

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

Functions

OCTAVE_EXPORT octave_value_list F__version_info__ (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Fatexit (octave::interpreter &interp, const octave_value_list &args, int nargout)
 
OCTAVE_EXPORT octave_value_list Fquit (octave::interpreter &interp, const octave_value_list &args, int)
 
static void octave::initialize_error_handlers (void)
 
static void octave::initialize_version_info (void)
 
static void octave::initialize_xerbla_error_handler (void)
 
static OCTAVE_NORETURN void octave::lo_error_handler (const char *fmt,...)
 
static OCTAVE_NORETURN void octave::lo_error_with_id_handler (const char *id, const char *fmt,...)
 
static int octave::safe_source_file (const std::string &file_name, const std::string &context="", bool verbose=false, bool require_file=true)
 
static void octave::xerbla_abort (void)
 

Variables

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 811 of file interpreter.cc.

◆ OCTAVE_SAFE_CALL

#define OCTAVE_SAFE_CALL (   F,
  ARGS 
)
Value:
do \
{ \
try \
{ \
unwind_protect frame; \
\
frame.add_method (m_error_system, \
&error_system::set_debug_on_error, \
m_error_system.debug_on_error ()); \
frame.add_method (m_error_system, \
&error_system::set_debug_on_warning, \
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)

Definition at line 820 of file interpreter.cc.

Function Documentation

◆ F__version_info__()

OCTAVE_EXPORT octave_value_list F__version_info__ ( const octave_value_list args,
int   
)

◆ Fatexit()

OCTAVE_EXPORT octave_value_list Fatexit ( octave::interpreter interp,
const octave_value_list args,
int  nargout 
)

Definition at line 270 of file interpreter.cc.

References ovl(), print_usage(), and retval.

◆ Fquit()

OCTAVE_EXPORT octave_value_list Fquit ( octave::interpreter interp,
const octave_value_list args,
int   
)

Definition at line 172 of file interpreter.cc.

References error(), numel(), ovl(), and print_usage().

Variable Documentation

◆ octave_initialized

bool octave_initialized = false

Definition at line 92 of file interpreter.cc.

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

◆ octave_interpreter_ready

bool octave_interpreter_ready = false

◆ quit_allowed