2005-12-20 [colin] 1.9.100cvs97
[claws.git] / src / common / utils.h
index 718e0525ec976c8895a36fcb8b798f4b950feba5..b766e028d1c38a466ad0b066adc60ec31fe47548 100644 (file)
@@ -189,7 +189,7 @@ typedef gpointer (*GNodeMapFunc)    (gpointer nodedata, gpointer data);
 void debug_set_mode            (gboolean mode);
 gboolean debug_get_mode                (void);
 #define debug_print \
-       debug_print_real(__FILE__ ":%d:", __LINE__), \
+       debug_print_real("%s:%d:", debug_srcname(__FILE__), __LINE__), \
        debug_print_real
 
 /* for macro expansion */
@@ -500,6 +500,7 @@ size_t my_strftime          (gchar                  *s,
 
 /* debugging */
 void debug_print_real  (const gchar *format, ...) G_GNUC_PRINTF(1, 2);
+const char * debug_srcname (const char *file);
 
 /* subject threading */
 void * subject_table_lookup(GHashTable *subject_table, gchar * subject);