egg-debug

egg-debug — Debugging functions

Synopsis

#define             egg_debug                           (...)
#define             egg_warning                         (...)
#define             egg_error                           (...)
gboolean            egg_debug_init                      (gint *argc,
                                                         gchar ***argv);
void                egg_debug_backtrace                 (void);
void                egg_debug_real                      (const gchar *func,
                                                         const gchar *file,
                                                         gint line,
                                                         const gchar *format,
                                                         ...);
void                egg_warning_real                    (const gchar *func,
                                                         const gchar *file,
                                                         gint line,
                                                         const gchar *format,
                                                         ...);
void                egg_error_real                      (const gchar *func,
                                                         const gchar *file,
                                                         gint line,
                                                         const gchar *format,
                                                         ...);

Description

This file contains functions that can be used for debugging.

Details

egg_debug()

#define             egg_debug(...)

Non critical debugging

... :


egg_warning()

#define             egg_warning(...)

Important debugging

... :


egg_error()

#define             egg_error(...)

Critical debugging, with exit

... :


egg_debug_init ()

gboolean            egg_debug_init                      (gint *argc,
                                                         gchar ***argv);

Parses command line arguments.

argc :

a pointer to the number of command line arguments.

argv :

a pointer to the array of command line arguments.

Returns :

TRUE if initialization succeeded, otherwise FALSE.

egg_debug_backtrace ()

void                egg_debug_backtrace                 (void);


egg_debug_real ()

void                egg_debug_real                      (const gchar *func,
                                                         const gchar *file,
                                                         gint line,
                                                         const gchar *format,
                                                         ...);

func :

file :

line :

format :

... :


egg_warning_real ()

void                egg_warning_real                    (const gchar *func,
                                                         const gchar *file,
                                                         gint line,
                                                         const gchar *format,
                                                         ...);

func :

file :

line :

format :

... :


egg_error_real ()

void                egg_error_real                      (const gchar *func,
                                                         const gchar *file,
                                                         gint line,
                                                         const gchar *format,
                                                         ...);

func :

file :

line :

format :

... :