GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
lo-error.c File Reference
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include "lo-error.h"

Go to the source code of this file.

Functions

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

Variables

OCTAVE_NORETURN liboctave_error_handler current_liboctave_error_handler = liboctave_fatal
 
OCTAVE_NORETURN liboctave_error_with_id_handler current_liboctave_error_with_id_handler = liboctave_fatal_with_id
 
liboctave_warning_handler current_liboctave_warning_handler = liboctave_warning
 
liboctave_warning_with_id_handler current_liboctave_warning_with_id_handler = liboctave_warning_with_id
 

Function Documentation

◆ liboctave_fatal()

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

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

Referenced by set_liboctave_error_handler().

◆ liboctave_fatal_with_id()

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

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

Referenced by set_liboctave_error_with_id_handler().

◆ liboctave_warning()

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

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

Referenced by set_liboctave_warning_handler().

◆ liboctave_warning_with_id()

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

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

Referenced by set_liboctave_warning_with_id_handler().

◆ set_liboctave_error_handler()

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().

◆ set_liboctave_error_with_id_handler()

void set_liboctave_error_with_id_handler ( OCTAVE_NORETURN liboctave_error_with_id_handler  f)

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

References current_liboctave_error_with_id_handler, f, and liboctave_fatal_with_id().

◆ set_liboctave_warning_handler()

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().

◆ set_liboctave_warning_with_id_handler()

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 liboctave_error_with_id_handler current_liboctave_error_with_id_handler = liboctave_fatal_with_id

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

Referenced by set_liboctave_error_with_id_handler().

◆ current_liboctave_warning_handler

liboctave_warning_handler current_liboctave_warning_handler = liboctave_warning

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

Referenced by set_liboctave_warning_handler().

◆ current_liboctave_warning_with_id_handler

liboctave_warning_with_id_handler current_liboctave_warning_with_id_handler = liboctave_warning_with_id

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

Referenced by set_liboctave_warning_with_id_handler().