2003-12-22 Christian Stimming <stimming@tuhh.de>

* src/engine/gnc-trace.h: Fix for gcc2.95 for macros with variable
	arguments by Lionel Elie Mamane <lionel@mamane.lu>.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9730 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2003-12-22 08:36:20 +00:00
parent 1bf5421f56
commit 9be021b247

View File

@ -123,55 +123,55 @@ const char * gnc_log_prettify (const char *name);
#define FATAL(format, args...) { \
g_log (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, \
"Fatal Error: %s(): " format, FUNK, ## args); \
"Fatal Error: %s(): " format, FUNK , ## args); \
}
#define PERR(format, args...) { \
if (gnc_should_log (module, GNC_LOG_ERROR)) { \
g_log (G_LOG_DOMAIN, G_LOG_LEVEL_CRITICAL, \
"Error: %s(): " format, FUNK, ## args); \
"Error: %s(): " format, FUNK , ## args); \
} \
}
#define PWARN(format, args...) { \
if (gnc_should_log (module, GNC_LOG_WARNING)) { \
g_log (G_LOG_DOMAIN, G_LOG_LEVEL_WARNING, \
"Warning: %s(): " format, FUNK, ## args); \
"Warning: %s(): " format, FUNK , ## args); \
} \
}
#define PINFO(format, args...) { \
if (gnc_should_log (module, GNC_LOG_INFO)) { \
g_log (G_LOG_DOMAIN, G_LOG_LEVEL_INFO, \
"Info: %s(): " format, FUNK, ## args); \
"Info: %s(): " format, FUNK , ## args); \
} \
}
#define DEBUG(format, args...) { \
if (gnc_should_log (module, GNC_LOG_DEBUG)) { \
g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, \
"Debug: %s(): " format, FUNK, ## args); \
"Debug: %s(): " format, FUNK , ## args); \
} \
}
#define ENTER(format, args...) { \
if (gnc_should_log (module, GNC_LOG_DEBUG)) { \
g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, \
"Enter: %s" format, FUNK, ## args); \
"Enter: %s" format, FUNK , ## args); \
} \
}
#define LEAVE(format, args...) { \
if (gnc_should_log (module, GNC_LOG_DEBUG)) { \
g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, \
"Leave: %s" format, FUNK, ## args); \
"Leave: %s" format, FUNK , ## args); \
} \
}
#define TRACE(format, args...) { \
if (gnc_should_log (module, GNC_LOG_TRACE)) { \
g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, \
"Trace: %s(): " format, FUNK, ## args); \
"Trace: %s(): " format, FUNK , ## args); \
} \
}
@ -200,19 +200,19 @@ void gnc_report_clock_total (int clockno,
#define START_CLOCK(clockno,format, args...) { \
if (gnc_should_log (module, GNC_LOG_INFO)) \
gnc_start_clock (clockno, module, GNC_LOG_INFO, \
__FUNCTION__, format, ## args); \
__FUNCTION__, format , ## args); \
}
#define REPORT_CLOCK(clockno,format, args...) { \
if (gnc_should_log (module, GNC_LOG_INFO)) \
gnc_report_clock (clockno, module, GNC_LOG_INFO, \
__FUNCTION__, format, ## args); \
__FUNCTION__, format , ## args); \
}
#define REPORT_CLOCK_TOTAL(clockno,format, args...) { \
if (gnc_should_log (module, GNC_LOG_INFO)) \
gnc_report_clock_total (clockno, module, GNC_LOG_INFO, \
__FUNCTION__, format, ## args); \
__FUNCTION__, format , ## args); \
}
#endif /* GNC_TRACE_H */