35 #if !defined (EVINCE_COMPILATION)
36 #error "This is a private header."
39 #ifndef __EV_DEBUG_H__
40 #define __EV_DEBUG_H__
42 #include <glib-object.h>
44 #define EV_GET_TYPE_NAME(instance) g_type_name_from_instance ((gpointer)instance)
46 #ifndef EV_ENABLE_DEBUG
48 #define _ev_debug_init()
49 #define _ev_debug_shutdown()
50 #if defined(G_HAVE_GNUC_VARARGS)
51 #define ev_debug_message(section, format, args...) G_STMT_START { } G_STMT_END
52 #define ev_profiler_start(format, args...) G_STMT_START { } G_STMT_END
53 #define ev_profiler_stop(format, args...) G_STMT_START { } G_STMT_END
54 #elif defined(G_HAVE_ISO_VARARGS)
55 #define ev_debug_message(...) G_STMT_START { } G_STMT_END
56 #define ev_profiler_start(...) G_STMT_START { } G_STMT_END
57 #define ev_profiler_stop(...) G_STMT_START { } G_STMT_END
59 static void ev_debug_message(EvDebugSection section,
const gchar *file, gint line,
const gchar *
function,
const gchar *format, ...) {}
75 EV_DEBUG_JOBS = 1 << 0,
76 EV_DEBUG_SHOW_BORDERS = 1 << 1
80 EV_DEBUG_BORDER_NONE = 0,
81 EV_DEBUG_BORDER_CHARS = 1 << 0,
82 EV_DEBUG_BORDER_LINKS = 1 << 1,
83 EV_DEBUG_BORDER_FORMS = 1 << 2,
84 EV_DEBUG_BORDER_ANNOTS = 1 << 3,
85 EV_DEBUG_BORDER_IMAGES = 1 << 4,
86 EV_DEBUG_BORDER_MEDIA = 1 << 5,
87 EV_DEBUG_BORDER_SELECTIONS = 1 << 6,
88 EV_DEBUG_BORDER_ALL = (1 << 7) - 1
91 #define DEBUG_JOBS EV_DEBUG_JOBS, __FILE__, __LINE__, G_STRFUNC
100 EV_PROFILE_JOBS = 1 << 0
109 const gchar *
function,
114 const gchar *format, ...) G_GNUC_PRINTF(2, 3);
116 EvDebugBorders ev_debug_get_debug_borders (
void);