diff -r 000000000000 -r 65cbecad22b4 config.h.in --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config.h.in Sun Feb 22 23:14:24 2009 +0200 @@ -0,0 +1,27 @@ + +#ifndef LLM_CONFIG_H +#define LLM_CONFIG_H + +// define this to enable debugging output +#cmakedefine DEBUG + +#ifdef DEBUG +# include + +# ifndef LLM_LOG_PREFIX +# define LLM_LOG_PREFIX ( NULL ) +# endif + +# define D(FORMAT...) { g_log (LLM_LOG_PREFIX, G_LOG_LEVEL_DEBUG, FORMAT); } +# define I(FORMAT...) { g_log (LLM_LOG_PREFIX, G_LOG_LEVEL_INFO, FORMAT); } +# define W(FORMAT...) { g_log (LLM_LOG_PREFIX, G_LOG_LEVEL_WARNING, FORMAT); } +# define E(FORMAT...) { g_log (LLM_LOG_PREFIX, G_LOG_LEVEL_ERROR, FORMAT); } +#else +# define D(FORMAT...) { /* FORMAT */ } +# define I(FORMAT...) { /* FORMAT */ } +# define W(FORMAT...) { /* FORMAT */ } +# define E(FORMAT...) { /* FORMAT */ } +#endif + +#endif +