author | Myhailo Danylenko <isbear@ukrpost.net> |
Thu, 30 Jul 2009 14:35:18 +0300 | |
changeset 28 | 2e4650583dd7 |
parent 23 | 13f03e604c8a |
child 31 | afcdbbce5002 |
permissions | -rw-r--r-- |
23 | 1 |
|
2 |
/* Copyright 2009 Myhailo Danylenko |
|
3 |
||
4 |
This file is part of lua-lm. |
|
5 |
||
6 |
lua-lm is free software: you can redistribute it and/or modify |
|
7 |
it under the terms of the GNU General Public License as published by |
|
8 |
the Free Software Foundation, either version 2 of the License, or |
|
9 |
(at your option) any later version. |
|
10 |
||
11 |
This program is distributed in the hope that it will be useful, |
|
12 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
GNU General Public License for more details. |
|
15 |
||
16 |
You should have received a copy of the GNU General Public License |
|
17 |
along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
|
5 | 18 |
|
19 |
#ifndef LLM_CONFIG_H |
|
20 |
#define LLM_CONFIG_H |
|
21 |
||
22 |
// define this to enable debugging output |
|
23 |
#cmakedefine DEBUG |
|
24 |
||
6
90073cbb535d
Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
25 |
// 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
|
26 |
#cmakedefine HAVE_LM_CONNECTION_GET_KEEP_ALIVE_RATE |
90073cbb535d
Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
27 |
|
5 | 28 |
#ifdef DEBUG |
23 | 29 |
# include <glib.h> |
6
90073cbb535d
Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
30 |
|
90073cbb535d
Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
31 |
# ifndef LLM_LOG_PREFIX |
90073cbb535d
Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
32 |
# define LLM_LOG_PREFIX ( "lua-lm" ) |
90073cbb535d
Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
33 |
# endif |
90073cbb535d
Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
34 |
|
90073cbb535d
Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
35 |
# 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
|
36 |
# 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
|
37 |
# 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
|
38 |
# define E(FORMAT...) { g_log (LLM_LOG_PREFIX, G_LOG_LEVEL_ERROR, FORMAT); } |
5 | 39 |
#else |
6
90073cbb535d
Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
40 |
# define D(FORMAT...) { /* FORMAT */ } |
90073cbb535d
Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
41 |
# define I(FORMAT...) { /* FORMAT */ } |
90073cbb535d
Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
42 |
# define W(FORMAT...) { /* FORMAT */ } |
90073cbb535d
Logging and chained methods
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
43 |
# define E(FORMAT...) { /* FORMAT */ } |
5 | 44 |
#endif |
45 |
||
46 |
#endif |
|
47 |