config.h.in
changeset 6 90073cbb535d
parent 5 e617c9cf6dd3
child 23 13f03e604c8a
equal deleted inserted replaced
5:e617c9cf6dd3 6:90073cbb535d
     3 #define LLM_CONFIG_H
     3 #define LLM_CONFIG_H
     4 
     4 
     5 // define this to enable debugging output
     5 // define this to enable debugging output
     6 #cmakedefine DEBUG
     6 #cmakedefine DEBUG
     7 
     7 
       
     8 // define this, if your loudmouth have lm_connection_get_keep_alive_rate ()
       
     9 #cmakedefine HAVE_LM_CONNECTION_GET_KEEP_ALIVE_RATE
       
    10 
     8 #ifdef DEBUG
    11 #ifdef DEBUG
     9 #include <stdio.h>
    12 #  include <stdio.h>
    10 #define D(FORMAT...) { fprintf ( stderr, FORMAT ); }
    13 
       
    14 #  ifndef LLM_LOG_PREFIX
       
    15 #    define LLM_LOG_PREFIX ( "lua-lm" )
       
    16 #  endif
       
    17 
       
    18 #  define D(FORMAT...) { g_log (LLM_LOG_PREFIX, G_LOG_LEVEL_DEBUG, FORMAT); }
       
    19 #  define I(FORMAT...) { g_log (LLM_LOG_PREFIX, G_LOG_LEVEL_INFO, FORMAT); }
       
    20 #  define W(FORMAT...) { g_log (LLM_LOG_PREFIX, G_LOG_LEVEL_WARNING, FORMAT); }
       
    21 #  define E(FORMAT...) { g_log (LLM_LOG_PREFIX, G_LOG_LEVEL_ERROR, FORMAT); }
    11 #else
    22 #else
    12 #define D(FORMAT...) { /* FORMAT */ }
    23 #  define D(FORMAT...) { /* FORMAT */ }
       
    24 #  define I(FORMAT...) { /* FORMAT */ }
       
    25 #  define W(FORMAT...) { /* FORMAT */ }
       
    26 #  define E(FORMAT...) { /* FORMAT */ }
    13 #endif
    27 #endif
    14 
    28 
    15 #endif
    29 #endif
    16 
    30