GEL  0.99
gel_error.c File Reference
#include <stdio.h>
#include <unistd.h>
#include <stdarg.h>
#include <gel/error.h>
#include <gel/stabs.h>

Functions

const char * gel_strerror (void)
 
gel_error_fun_tgel_set_error_fun (gel_error_fun_t *fun)
 
void gel_set_error (int code, const char *fmt,...)
 

Variables

int gel_errno = GEL_ESUCCESS
 

Function Documentation

◆ gel_set_error()

void gel_set_error ( int  code,
const char *  fmt,
  ... 
)

Generate an error using new error function system.

Parameters
codeError code.
fmtMessage format.
...Format arguments.

◆ gel_set_error_fun()

gel_error_fun_t* gel_set_error_fun ( gel_error_fun_t fun)

Set the function which will be called when an error or a warning arise.

Parameters
funNew error function.
Returns
Old error function.