app: move the instance debug facility to the new file app/gimp-debug.c

Build it unconditionally but enable it via GIMP_DEBUG=instances
This commit is contained in:
Michael Natterer
2010-06-24 19:11:56 +02:00
parent c448cc7d25
commit b2b1cb135b
6 changed files with 17 additions and 88 deletions

View File

@ -36,7 +36,8 @@ typedef enum
GIMP_LOG_SHM = 1 << 12,
GIMP_LOG_TEXT_EDITING = 1 << 13,
GIMP_LOG_KEY_EVENTS = 1 << 14,
GIMP_LOG_AUTO_TAB_STYLE = 1 << 15
GIMP_LOG_AUTO_TAB_STYLE = 1 << 15,
GIMP_LOG_INSTANCES = 1 << 16
} GimpLogFlags;
@ -93,6 +94,7 @@ void gimp_logv (const gchar *function,
#define TEXT_EDITING GIMP_LOG_TEXT_EDITING
#define KEY_EVENTS GIMP_LOG_KEY_EVENTS
#define AUTO_TAB_STYLE GIMP_LOG_AUTO_TAB_STYLE
#define INSTANCES GIMP_LOG_INSTANCES
#if 0 /* last resort */
# define GIMP_LOG /* nothing => no varargs, no log */