author | Myhailo Danylenko <isbear@ukrpost.net> |
Thu, 21 May 2009 00:13:26 +0300 | |
changeset 72 | d049c92d0809 |
parent 30 | 2cf24aced294 |
child 78 | 1253cacc0f21 |
permissions | -rw-r--r-- |
72 | 1 |
|
2 |
/* Copyright 2009 Myhailo Danylenko |
|
3 |
||
4 |
This file is part of mcabber-lua. |
|
5 |
||
6 |
mcabber-lua 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/>. */ |
|
0 | 18 |
|
3
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
19 |
#ifndef MLUA_CONFIG_H |
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
20 |
#define MLUA_CONFIG_H |
0 | 21 |
|
22 |
// define this to enable debugging output |
|
23 |
#cmakedefine DEBUG |
|
24 |
||
3
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
25 |
// define this to enable lua-loudmouth log messages handler |
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
26 |
#cmakedefine LLM_LOG_HANDLER |
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
27 |
|
30
2cf24aced294
Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents:
6
diff
changeset
|
28 |
// size of background pipe reading buffer |
2cf24aced294
Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents:
6
diff
changeset
|
29 |
#define MLUA_BGREAD_BUFFER ( ${ML_BGREAD_BUFFER} ) |
2cf24aced294
Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents:
6
diff
changeset
|
30 |
|
2cf24aced294
Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents:
6
diff
changeset
|
31 |
// priority of glib event sources for timeout and bgread |
2cf24aced294
Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents:
6
diff
changeset
|
32 |
#define MLUA_SOURCE_PRIORITY ( ${ML_SOURCE_PRIORITY} ) |
2cf24aced294
Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents:
6
diff
changeset
|
33 |
|
1 | 34 |
// hack for mcabber headers |
35 |
#define MODULES_ENABLE |
|
36 |
||
0 | 37 |
#ifdef DEBUG |
38 |
# include <stdio.h> |
|
39 |
||
3
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
40 |
# ifndef MLUA_LOG_PREFIX |
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
41 |
# define MLUA_LOG_PREFIX ( NULL ) |
0 | 42 |
# endif |
43 |
||
3
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
44 |
# define D(FORMAT...) { g_log (MLUA_LOG_PREFIX, G_LOG_LEVEL_DEBUG, FORMAT); } |
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
45 |
# define I(FORMAT...) { g_log (MLUA_LOG_PREFIX, G_LOG_LEVEL_INFO, FORMAT); } |
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
46 |
# define W(FORMAT...) { g_log (MLUA_LOG_PREFIX, G_LOG_LEVEL_WARNING, FORMAT); } |
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
47 |
# define E(FORMAT...) { g_log (MLUA_LOG_PREFIX, G_LOG_LEVEL_ERROR, FORMAT); } |
0 | 48 |
#else |
49 |
# define D(FORMAT...) { /* FORMAT */ } |
|
50 |
# define I(FORMAT...) { /* FORMAT */ } |
|
51 |
# define W(FORMAT...) { /* FORMAT */ } |
|
52 |
# define E(FORMAT...) { /* FORMAT */ } |
|
53 |
#endif |
|
54 |
||
55 |
#endif |
|
56 |