Macros | Typedefs | Functions
gfsmError.h File Reference

Error utilities. More...

#include <glib.h>
Include dependency graph for gfsmError.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define gfsmErrorNone   NULL
#define gfsm_carp(e)   gfsm_carp_named(e,NULL)
#define gfsm_die(e)   gfsm_die_named(e,NULL)
#define gfsm_do_or_die(e)   gfsm_die_named(e,NULL)

Typedefs

typedef GError gfsmError
 struct for errors

Functions

void gfsm_carp_named (gfsmError *error, const gchar *myname)
void gfsm_die_named (gfsmError *error, const gchar *myname)

Detailed Description

Macro Definition Documentation

#define gfsmErrorNone   NULL

Constant indicating no error condition

#define gfsm_carp (   e)    gfsm_carp_named(e,NULL)

Report a warning and continue; does nothing if error==NULL

#define gfsm_die (   e)    gfsm_die_named(e,NULL)

die using default diagnostic name "gfsm"; does nothing if error==NULL

#define gfsm_do_or_die (   e)    gfsm_die_named(e,NULL)

do or die

Typedef Documentation

typedef GError gfsmError

Function Documentation

void gfsm_carp_named ( gfsmError error,
const gchar *  myname 
)

Report a warning and continue; does nothing if error==NULL

void gfsm_die_named ( gfsmError error,
const gchar *  myname 
)

carp and exit with code error->code ; does nothing if error==NULL