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
49 GL_DEBUG_MEDIA_SELECT,
50 GL_DEBUG_MINI_PREVIEW,
54 extern gint gl_debug_all;
55 extern gint gl_debug_view;
56 extern gint gl_debug_item;
57 extern gint gl_debug_print;
58 extern gint gl_debug_prefs;
59 extern gint gl_debug_file;
60 extern gint gl_debug_label;
61 extern gint gl_debug_template;
62 extern gint gl_debug_xml;
63 extern gint gl_debug_merge;
64 extern gint gl_debug_commands;
65 extern gint gl_debug_undo;
66 extern gint gl_debug_recent;
67 extern gint gl_debug_mdi;
68 extern gint gl_debug_media_select;
69 extern gint gl_debug_mini_preview;
70 extern gint gl_debug_wdgt;
73 #define __FUNCTION__ ""
76 #define DEBUG_VIEW GL_DEBUG_VIEW, __FILE__, __LINE__, __FUNCTION__
77 #define DEBUG_ITEM GL_DEBUG_ITEM, __FILE__, __LINE__, __FUNCTION__
78 #define DEBUG_PRINT GL_DEBUG_PRINT, __FILE__, __LINE__, __FUNCTION__
79 #define DEBUG_PREFS GL_DEBUG_PREFS, __FILE__, __LINE__, __FUNCTION__
80 #define DEBUG_FILE GL_DEBUG_FILE, __FILE__, __LINE__, __FUNCTION__
81 #define DEBUG_LABEL GL_DEBUG_LABEL, __FILE__, __LINE__, __FUNCTION__
82 #define DEBUG_TEMPLATE GL_DEBUG_TEMPLATE,__FILE__, __LINE__, __FUNCTION__
83 #define DEBUG_XML GL_DEBUG_XML, __FILE__, __LINE__, __FUNCTION__
84 #define DEBUG_MERGE GL_DEBUG_MERGE, __FILE__, __LINE__, __FUNCTION__
85 #define DEBUG_UNDO GL_DEBUG_UNDO, __FILE__, __LINE__, __FUNCTION__
86 #define DEBUG_RECENT GL_DEBUG_RECENT, __FILE__, __LINE__, __FUNCTION__
87 #define DEBUG_COMMANDS GL_DEBUG_COMMANDS,__FILE__, __LINE__, __FUNCTION__
88 #define DEBUG_MDI GL_DEBUG_MDI, __FILE__, __LINE__, __FUNCTION__
89 #define DEBUG_MEDIA_SELECT GL_DEBUG_MEDIA_SELECT, __FILE__, __LINE__, __FUNCTION__
90 #define DEBUG_MINI_PREVIEW GL_DEBUG_MINI_PREVIEW, __FILE__, __LINE__, __FUNCTION__
91 #define DEBUG_WDGT GL_DEBUG_WDGT, __FILE__, __LINE__, __FUNCTION__
93 void gl_debug (gint section, gchar *file,
94 gint line, gchar* function, gchar* format, ...);
98 #endif /* __DEBUG_H__ */