config.h.in
author Myhailo Danylenko <isbear@ukrpost.net>
Mon, 23 Feb 2009 04:05:05 +0200
changeset 1 7d87d323c889
parent 0 65cbecad22b4
child 3 a5f864d4207f
permissions -rw-r--r--
Fixes and improvement * style changed * documentation * various fixes * unregistering commands (see TODO)


#ifndef LLM_CONFIG_H
#define LLM_CONFIG_H

// define this to enable debugging output
#cmakedefine DEBUG

// hack for mcabber headers
#define MODULES_ENABLE

#ifdef DEBUG
#  include <stdio.h>

#  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