2 * (GLABELS) Label and Business Card Creation program for GNOME
4 * debug.h: GLabels debug module
6 * Copyright (C) 2001-2002 Jim Evins <evins@snaught.com>.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 * This file is based on gedit-debug.h from gedit2:
26 * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence
27 * Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi
51 GL_DEBUG_PROPERTY_BAR,
52 GL_DEBUG_MEDIA_SELECT,
53 GL_DEBUG_MINI_PREVIEW,
54 GL_DEBUG_PIXBUF_CACHE,
58 extern gint gl_debug_all;
59 extern gint gl_debug_view;
60 extern gint gl_debug_item;
61 extern gint gl_debug_print;
62 extern gint gl_debug_prefs;
63 extern gint gl_debug_file;
64 extern gint gl_debug_label;
65 extern gint gl_debug_template;
66 extern gint gl_debug_paper;
67 extern gint gl_debug_xml;
68 extern gint gl_debug_merge;
69 extern gint gl_debug_commands;
70 extern gint gl_debug_undo;
71 extern gint gl_debug_recent;
72 extern gint gl_debug_window;
73 extern gint gl_debug_ui;
74 extern gint gl_debug_property_bar;
75 extern gint gl_debug_media_select;
76 extern gint gl_debug_mini_preview;
77 extern gint gl_debug_pixbuf_cache;
78 extern gint gl_debug_wdgt;
81 #define __FUNCTION__ ""
84 #define DEBUG_VIEW GL_DEBUG_VIEW, __FILE__, __LINE__, __FUNCTION__
85 #define DEBUG_ITEM GL_DEBUG_ITEM, __FILE__, __LINE__, __FUNCTION__
86 #define DEBUG_PRINT GL_DEBUG_PRINT, __FILE__, __LINE__, __FUNCTION__
87 #define DEBUG_PREFS GL_DEBUG_PREFS, __FILE__, __LINE__, __FUNCTION__
88 #define DEBUG_FILE GL_DEBUG_FILE, __FILE__, __LINE__, __FUNCTION__
89 #define DEBUG_LABEL GL_DEBUG_LABEL, __FILE__, __LINE__, __FUNCTION__
90 #define DEBUG_TEMPLATE GL_DEBUG_TEMPLATE,__FILE__, __LINE__, __FUNCTION__
91 #define DEBUG_PAPER GL_DEBUG_PAPER, __FILE__, __LINE__, __FUNCTION__
92 #define DEBUG_XML GL_DEBUG_XML, __FILE__, __LINE__, __FUNCTION__
93 #define DEBUG_MERGE GL_DEBUG_MERGE, __FILE__, __LINE__, __FUNCTION__
94 #define DEBUG_UNDO GL_DEBUG_UNDO, __FILE__, __LINE__, __FUNCTION__
95 #define DEBUG_RECENT GL_DEBUG_RECENT, __FILE__, __LINE__, __FUNCTION__
96 #define DEBUG_COMMANDS GL_DEBUG_COMMANDS,__FILE__, __LINE__, __FUNCTION__
97 #define DEBUG_WINDOW GL_DEBUG_WINDOW, __FILE__, __LINE__, __FUNCTION__
98 #define DEBUG_UI GL_DEBUG_UI, __FILE__, __LINE__, __FUNCTION__
99 #define DEBUG_PROPERTY_BAR GL_DEBUG_PROPERTY_BAR, __FILE__, __LINE__, __FUNCTION__
100 #define DEBUG_MEDIA_SELECT GL_DEBUG_MEDIA_SELECT, __FILE__, __LINE__, __FUNCTION__
101 #define DEBUG_MINI_PREVIEW GL_DEBUG_MINI_PREVIEW, __FILE__, __LINE__, __FUNCTION__
102 #define DEBUG_PIXBUF_CACHE GL_DEBUG_PIXBUF_CACHE, __FILE__, __LINE__, __FUNCTION__
103 #define DEBUG_WDGT GL_DEBUG_WDGT, __FILE__, __LINE__, __FUNCTION__
105 void gl_debug (gint section, gchar *file,
106 gint line, gchar* function, gchar* format, ...);
110 #endif /* __DEBUG_H__ */