author | Myhailo Danylenko <isbear@ukrpost.net> |
Tue, 19 May 2009 00:44:52 +0300 | |
changeset 21 | a9b92b65961e |
parent 6 | 90073cbb535d |
child 23 | 13f03e604c8a |
permissions | -rw-r--r-- |
5 | 1 |
|
2 |
#ifndef LLM_CONFIG_H |
|
3 |
#define LLM_CONFIG_H |
|
4 |
||
5 |
// define this to enable debugging output |
|
6 |
#cmakedefine DEBUG |
|
7 |
||
6
90073cbb535d
Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
8 |
// define this, if your loudmouth have lm_connection_get_keep_alive_rate () |
90073cbb535d
Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
9 |
#cmakedefine HAVE_LM_CONNECTION_GET_KEEP_ALIVE_RATE |
90073cbb535d
Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
10 |
|
5 | 11 |
#ifdef DEBUG |
6
90073cbb535d
Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
12 |
# include <stdio.h> |
90073cbb535d
Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
13 |
|
90073cbb535d
Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
14 |
# ifndef LLM_LOG_PREFIX |
90073cbb535d
Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
15 |
# define LLM_LOG_PREFIX ( "lua-lm" ) |
90073cbb535d
Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
16 |
# endif |
90073cbb535d
Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
17 |
|
90073cbb535d
Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
18 |
# define D(FORMAT...) { g_log (LLM_LOG_PREFIX, G_LOG_LEVEL_DEBUG, FORMAT); } |
90073cbb535d
Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
19 |
# define I(FORMAT...) { g_log (LLM_LOG_PREFIX, G_LOG_LEVEL_INFO, FORMAT); } |
90073cbb535d
Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
20 |
# define W(FORMAT...) { g_log (LLM_LOG_PREFIX, G_LOG_LEVEL_WARNING, FORMAT); } |
90073cbb535d
Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
21 |
# define E(FORMAT...) { g_log (LLM_LOG_PREFIX, G_LOG_LEVEL_ERROR, FORMAT); } |
5 | 22 |
#else |
6
90073cbb535d
Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
23 |
# define D(FORMAT...) { /* FORMAT */ } |
90073cbb535d
Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
24 |
# define I(FORMAT...) { /* FORMAT */ } |
90073cbb535d
Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
25 |
# define W(FORMAT...) { /* FORMAT */ } |
90073cbb535d
Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
26 |
# define E(FORMAT...) { /* FORMAT */ } |
5 | 27 |
#endif |
28 |
||
29 |
#endif |
|
30 |