GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
lo-error.h File Reference
#include "octave-config.h"
Include dependency graph for lo-error.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void(* liboctave_error_handler) (const char *,...)
 
typedef void(* liboctave_error_with_id_handler) (const char *, const char *,...)
 
typedef void(* liboctave_warning_handler) (const char *,...)
 
typedef void(* liboctave_warning_with_id_handler) (const char *, const char *,...)
 

Functions

OCTAVE_NORETURN OCTAVE_API void liboctave_fatal (const char *fmt,...)
 
OCTAVE_NORETURN OCTAVE_API void liboctave_fatal_with_id (const char *id, const char *fmt,...)
 
OCTAVE_API void liboctave_warning (const char *fmt,...)
 
OCTAVE_API void liboctave_warning_with_id (const char *id, const char *fmt,...)
 
OCTAVE_API void set_liboctave_error_handler (OCTAVE_NORETURN liboctave_error_handler f)
 
OCTAVE_API void set_liboctave_error_with_id_handler (OCTAVE_NORETURN liboctave_error_with_id_handler f)
 
OCTAVE_API void set_liboctave_warning_handler (liboctave_warning_handler f)
 
OCTAVE_API void set_liboctave_warning_with_id_handler (liboctave_warning_with_id_handler f)
 

Variables

OCTAVE_NORETURN OCTAVE_API liboctave_error_handler current_liboctave_error_handler
 
OCTAVE_NORETURN OCTAVE_API liboctave_error_with_id_handler current_liboctave_error_with_id_handler
 
OCTAVE_API liboctave_warning_handler current_liboctave_warning_handler
 
OCTAVE_API liboctave_warning_with_id_handler current_liboctave_warning_with_id_handler
 

Typedef Documentation

◆ liboctave_error_handler

typedef void(* liboctave_error_handler) (const char *,...)

Definition at line 47 of file lo-error.h.

◆ liboctave_error_with_id_handler

typedef void(* liboctave_error_with_id_handler) (const char *, const char *,...)

Definition at line 49 of file lo-error.h.

◆ liboctave_warning_handler

typedef void(* liboctave_warning_handler) (const char *,...)

Definition at line 52 of file lo-error.h.

◆ liboctave_warning_with_id_handler

typedef void(* liboctave_warning_with_id_handler) (const char *, const char *,...)

Definition at line 54 of file lo-error.h.

Function Documentation

◆ liboctave_fatal()

OCTAVE_NORETURN OCTAVE_API void liboctave_fatal ( const char *  fmt,
  ... 
)

Definition at line 104 of file lo-error.c.

References verror().

Referenced by set_liboctave_error_handler().

◆ liboctave_fatal_with_id()

OCTAVE_NORETURN OCTAVE_API void liboctave_fatal_with_id ( const char *  id,
const char *  fmt,
  ... 
)

Definition at line 115 of file lo-error.c.

References verror().

Referenced by set_liboctave_error_with_id_handler().

◆ liboctave_warning()

OCTAVE_API void liboctave_warning ( const char *  fmt,
  ... 
)

Definition at line 128 of file lo-error.c.

References verror().

Referenced by set_liboctave_warning_handler().

◆ liboctave_warning_with_id()

OCTAVE_API void liboctave_warning_with_id ( const char *  id,
const char *  fmt,
  ... 
)

Definition at line 137 of file lo-error.c.

References verror().

Referenced by set_liboctave_warning_with_id_handler().

◆ set_liboctave_error_handler()

OCTAVE_API void set_liboctave_error_handler ( OCTAVE_NORETURN liboctave_error_handler  f)

Definition at line 67 of file lo-error.c.

References current_liboctave_error_handler, f, and liboctave_fatal().

Referenced by initialize_error_handlers().

◆ set_liboctave_error_with_id_handler()

OCTAVE_API void set_liboctave_error_with_id_handler ( OCTAVE_NORETURN liboctave_error_with_id_handler  f)

◆ set_liboctave_warning_handler()

OCTAVE_API void set_liboctave_warning_handler ( liboctave_warning_handler  f)

Definition at line 86 of file lo-error.c.

References current_liboctave_warning_handler, f, and liboctave_warning().

Referenced by initialize_error_handlers().

◆ set_liboctave_warning_with_id_handler()

OCTAVE_API void set_liboctave_warning_with_id_handler ( liboctave_warning_with_id_handler  f)

Variable Documentation

◆ current_liboctave_error_handler

◆ current_liboctave_error_with_id_handler

OCTAVE_NORETURN OCTAVE_API liboctave_error_with_id_handler current_liboctave_error_with_id_handler
extern

Definition at line 45 of file lo-error.c.

Referenced by set_liboctave_error_with_id_handler().

◆ current_liboctave_warning_handler

OCTAVE_API liboctave_warning_handler current_liboctave_warning_handler
extern

Definition at line 49 of file lo-error.c.

Referenced by set_liboctave_warning_handler().

◆ current_liboctave_warning_with_id_handler

OCTAVE_API liboctave_warning_with_id_handler current_liboctave_warning_with_id_handler
extern

Definition at line 53 of file lo-error.c.

Referenced by set_liboctave_warning_with_id_handler().