GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
interpreter.cc File Reference
#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 "call-stack.h"
#include "defun.h"
#include "display.h"
#include "error.h"
#include "file-io.h"
#include "graphics.h"
#include "help.h"
#include "interpreter-private.h"
#include "interpreter.h"
#include "load-path.h"
#include "load-save.h"
#include "octave-link.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-eval.h"
#include "pt-jump.h"
#include "pt-mat.h"
#include "pt-stmt.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.

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 Fquit (const octave_value_list &args, int) pass that value to the operating system as Octave 's exit status. The default value is zero. When exiting
 

Variables

OCTAVE_EXPORT octave_value_list Octave will attempt to run the m file file {finish.m} if it exists. User commands to save the workspace or clean up temporary files may be placed in that file. Alternatively
 
bool octave_initialized = false
 
bool octave_interpreter_ready = false
 
bool quit_allowed = true
 

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; \
}

◆ OCTAVE_SAFE_CALL

#define OCTAVE_SAFE_CALL (   F,
  ARGS 
)
Value:
do \
{ \
try \
{ \
unwind_protect frame; \
\
frame.protect_var (Vdebug_on_warning); \
\
Vdebug_on_error = false; \
Vdebug_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)
bool Vdebug_on_error
Definition: error.cc:62
bool Vdebug_on_warning
Definition: error.cc:70
octave::unwind_protect frame
Definition: graphics.cc:12190

Function Documentation

◆ F__version_info__()

OCTAVE_EXPORT octave_value_list F__version_info__ ( const octave_value_list args,
int   
)

◆ Fquit()

OCTAVE_EXPORT octave_value_list Fquit ( const octave_value_list args,
int   
)

Variable Documentation

◆ file

OCTAVE_EXPORT octave_value_list Octave will attempt to run the m file file {finish.m} if it exists. User commands to save the workspace or clean up temporary files may be placed in that file. Alternatively

Definition at line 146 of file interpreter.cc.

◆ octave_initialized

bool octave_initialized = false

Definition at line 84 of file interpreter.cc.

Referenced by octave::generic_sig_handler().

◆ octave_interpreter_ready

bool octave_interpreter_ready = false

Definition at line 81 of file interpreter.cc.

Referenced by execute_pkg_add_or_del().

◆ quit_allowed

bool quit_allowed = true

Definition at line 77 of file interpreter.cc.

Referenced by octave_oncleanup::~octave_oncleanup().