GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Macros | Typedefs | Functions | Variables
toplev.h File Reference
#include <cstdio>
#include <deque>
#include <string>
#include "quit.h"
#include "input.h"
#include "oct-map.h"
#include "symtab.h"
Include dependency graph for toplev.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  octave_call_stack
 
class  octave_call_stack::stack_frame
 

Macros

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

Typedefs

typedef void(* octave_exit_func )(int)
 

Functions

OCTINTERP_API void clean_up_and_exit (int status, bool safe_to_return=false)
 
OCTINTERP_API int main_loop (void)
 
OCTINTERP_API void octave_add_atexit_function (const std::string &fname)
 
OCTINTERP_API bool octave_remove_atexit_function (const std::string &fname)
 
OCTINTERP_API void recover_from_exception (void)
 

Variables

OCTINTERP_API int exit_status
 
OCTINTERP_API octave_exit_func octave_exit
 
OCTINTERP_API bool octave_initialized
 
OCTINTERP_API bool octave_interpreter_ready
 
OCTINTERP_API bool quit_allowed
 
OCTINTERP_API bool quitting_gracefully
 

Macro Definition Documentation

#define OCTAVE_IGNORE_EXCEPTION (   E)
Value:
catch (E) \
{ \
std::cerr << "error: ignoring " #E " while preparing to exit" << std::endl; \
}
OCTINTERP_API void recover_from_exception(void)
Definition: toplev.cc:547

Definition at line 496 of file toplev.h.

#define OCTAVE_SAFE_CALL (   F,
  ARGS 
)
Value:
do \
{ \
try \
{ \
unwind_protect frame; \
\
frame.protect_var (Vdebug_on_error); \
frame.protect_var (Vdebug_on_warning); \
\
\
F ARGS; \
} \
OCTAVE_IGNORE_EXCEPTION (octave_interrupt_exception) \
OCTAVE_IGNORE_EXCEPTION (octave_execution_exception) \
OCTAVE_IGNORE_EXCEPTION (std::bad_alloc) \
\
} \
while (0)
bool Vdebug_on_error
Definition: error.cc:58
bool Vdebug_on_warning
Definition: error.cc:62
int error_state
Definition: error.cc:101
#define OCTAVE_IGNORE_EXCEPTION(E)
Definition: toplev.h:496
void F(const TSRC *v, TRES *r, octave_idx_type m, octave_idx_type n)
Definition: mx-inlines.cc:527

Definition at line 503 of file toplev.h.

Referenced by close_figure(), and do_octave_atexit().

Typedef Documentation

typedef void(* octave_exit_func)(int)

Definition at line 46 of file toplev.h.

Function Documentation

OCTINTERP_API void clean_up_and_exit ( int  status,
bool  safe_to_return = false 
)
OCTINTERP_API int main_loop ( void  )
OCTINTERP_API void octave_add_atexit_function ( const std::string &  fname)

Definition at line 1147 of file toplev.cc.

Referenced by QtHandles::__init__(), QtHandles::__shutdown__(), and Fatexit().

OCTINTERP_API bool octave_remove_atexit_function ( const std::string &  fname)

Definition at line 1153 of file toplev.cc.

Referenced by Fatexit().

OCTINTERP_API void recover_from_exception ( void  )

Variable Documentation

OCTINTERP_API int exit_status

Definition at line 96 of file toplev.cc.

Referenced by execute_eval_option_code(), main_loop(), and safe_source_file().

Definition at line 88 of file toplev.cc.

Referenced by clean_up_and_exit().

OCTINTERP_API bool octave_initialized
OCTINTERP_API bool octave_interpreter_ready

Definition at line 100 of file toplev.cc.

Referenced by execute_pkg_add_or_del(), and octave_initialize_interpreter().

OCTINTERP_API bool quit_allowed
OCTINTERP_API bool quitting_gracefully