GNU Octave  3.8.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

struct  octave_call_stack::call_stack_elt
class  octave_call_stack

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; \
recover_from_exception (); \
}

Definition at line 439 of file toplev.h.

#define OCTAVE_SAFE_CALL (   F,
  ARGS 
)
Value:
do \
{ \
try \
{ \
\
frame.protect_var (Vdebug_on_warning); \
\
Vdebug_on_error = false; \
Vdebug_on_warning = false; \
\
F ARGS; \
} \
OCTAVE_IGNORE_EXCEPTION (octave_interrupt_exception) \
OCTAVE_IGNORE_EXCEPTION (octave_execution_exception) \
OCTAVE_IGNORE_EXCEPTION (std::bad_alloc) \
error_state = 0; \
} \
while (0)

Definition at line 446 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 1099 of file toplev.cc.

Referenced by Fatexit().

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

Definition at line 1105 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