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 */
/* 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);