pk-debug

pk-debug — Debugging functions

Synopsis




#define             pk_debug                            (...)
#define             pk_warning                          (...)
#define             pk_error                            (...)
void                pk_debug_init                       (gboolean debug);
void                pk_debug_set_logging                (gboolean enabled);
gboolean            pk_debug_enabled                    (void);
void                pk_debug_real                       (const gchar *func,
                                                         const gchar *file,
                                                         int line,
                                                         const gchar *format,
                                                         ...);
void                pk_warning_real                     (const gchar *func,
                                                         const gchar *file,
                                                         int line,
                                                         const gchar *format,
                                                         ...);
void                pk_error_real                       (const gchar *func,
                                                         const gchar *file,
                                                         int line,
                                                         const gchar *format,
                                                         ...);

Description

This file contains functions that can be used for debugging.

Details

pk_debug()

#define             pk_debug(...)

Non critical debugging

... :


pk_warning()

#define             pk_warning(...)

Important debugging

... :


pk_error()

#define             pk_error(...)

Critical debugging, with exit

... :


pk_debug_init ()

void                pk_debug_init                       (gboolean debug);

debug :

If we should print out verbose logging

pk_debug_set_logging ()

void                pk_debug_set_logging                (gboolean enabled);

enabled :


pk_debug_enabled ()

gboolean            pk_debug_enabled                    (void);

Returns :

TRUE if we have debugging enabled

pk_debug_real ()

void                pk_debug_real                       (const gchar *func,
                                                         const gchar *file,
                                                         int line,
                                                         const gchar *format,
                                                         ...);

func :

file :

line :

format :

... :


pk_warning_real ()

void                pk_warning_real                     (const gchar *func,
                                                         const gchar *file,
                                                         int line,
                                                         const gchar *format,
                                                         ...);

func :

file :

line :

format :

... :


pk_error_real ()

void                pk_error_real                       (const gchar *func,
                                                         const gchar *file,
                                                         int line,
                                                         const gchar *format,
                                                         ...);

func :

file :

line :

format :

... :