config.h.in
author Myhailo Danylenko <isbear@ukrpost.net>
Tue, 31 Mar 2009 18:35:34 +0300
changeset 68 742878c74b8e
parent 30 2cf24aced294
child 72 d049c92d0809
permissions -rw-r--r--
Lm separation, privacy * Library parts moved to lm.* * mc_* renamed to plain names * Privacy lists suppart (not tested)


#ifndef MLUA_CONFIG_H
#define MLUA_CONFIG_H

// define this to enable debugging output
#cmakedefine DEBUG

// define this to enable lua-loudmouth log messages handler
#cmakedefine LLM_LOG_HANDLER

// size of background pipe reading buffer
#define MLUA_BGREAD_BUFFER   ( ${ML_BGREAD_BUFFER} )

// priority of glib event sources for timeout and bgread
#define MLUA_SOURCE_PRIORITY ( ${ML_SOURCE_PRIORITY} )

// hack for mcabber headers
#define MODULES_ENABLE

#ifdef DEBUG
#  include <stdio.h>

#  ifndef MLUA_LOG_PREFIX
#    define MLUA_LOG_PREFIX ( NULL )
#  endif

#  define D(FORMAT...) { g_log (MLUA_LOG_PREFIX, G_LOG_LEVEL_DEBUG, FORMAT); }
#  define I(FORMAT...) { g_log (MLUA_LOG_PREFIX, G_LOG_LEVEL_INFO, FORMAT); }
#  define W(FORMAT...) { g_log (MLUA_LOG_PREFIX, G_LOG_LEVEL_WARNING, FORMAT); }
#  define E(FORMAT...) { g_log (MLUA_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