GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
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.

Macros

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

Functions

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

Variables

std::atomic< booloctave_initialized {false}
 
bool octave_interpreter_ready = false
 
bool quit_allowed = true
 
sys::time 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 915 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:90
void set_debug_on_error(bool flag)
Definition error.h:62

Definition at line 924 of file interpreter.cc.

Function Documentation

◆ F__traditional__()

octave_value_list F__traditional__ ( octave::interpreter &  interp,
const octave_value_list ,
int   
)

Definition at line 315 of file interpreter.cc.

References ovl().

◆ F__version_info__()

◆ Fatexit()

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

Definition at line 283 of file interpreter.cc.

References ovl(), and print_usage().

◆ Fquit()

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

Definition at line 179 of file interpreter.cc.

References error(), octave_value::length(), numel(), ovl(), and print_usage().

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.

Referenced by interpreter::interpreter().

◆ quit_allowed

bool quit_allowed = true

◆ Vlast_chdir_time

sys::time Vlast_chdir_time = 0.0

Definition at line 345 of file interpreter.cc.

Referenced by interpreter::chdir().