author | Myhailo Danylenko <isbear@ukrpost.net> |
Sun, 22 Mar 2009 04:14:36 +0200 | |
changeset 49 | 95f3bf77c598 |
parent 30 | 2cf24aced294 |
child 72 | d049c92d0809 |
permissions | -rw-r--r-- |
0 | 1 |
|
3
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
2 |
#ifndef MLUA_CONFIG_H |
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
3 |
#define MLUA_CONFIG_H |
0 | 4 |
|
5 |
// define this to enable debugging output |
|
6 |
#cmakedefine DEBUG |
|
7 |
||
3
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
8 |
// define this to enable lua-loudmouth log messages handler |
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
9 |
#cmakedefine LLM_LOG_HANDLER |
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
10 |
|
30
2cf24aced294
Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents:
6
diff
changeset
|
11 |
// size of background pipe reading buffer |
2cf24aced294
Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents:
6
diff
changeset
|
12 |
#define MLUA_BGREAD_BUFFER ( ${ML_BGREAD_BUFFER} ) |
2cf24aced294
Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents:
6
diff
changeset
|
13 |
|
2cf24aced294
Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents:
6
diff
changeset
|
14 |
// priority of glib event sources for timeout and bgread |
2cf24aced294
Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents:
6
diff
changeset
|
15 |
#define MLUA_SOURCE_PRIORITY ( ${ML_SOURCE_PRIORITY} ) |
2cf24aced294
Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents:
6
diff
changeset
|
16 |
|
1 | 17 |
// hack for mcabber headers |
18 |
#define MODULES_ENABLE |
|
19 |
||
0 | 20 |
#ifdef DEBUG |
21 |
# include <stdio.h> |
|
22 |
||
3
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
23 |
# ifndef MLUA_LOG_PREFIX |
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
24 |
# define MLUA_LOG_PREFIX ( NULL ) |
0 | 25 |
# endif |
26 |
||
3
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
27 |
# 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
|
28 |
# 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
|
29 |
# 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
|
30 |
# define E(FORMAT...) { g_log (MLUA_LOG_PREFIX, G_LOG_LEVEL_ERROR, FORMAT); } |
0 | 31 |
#else |
32 |
# define D(FORMAT...) { /* FORMAT */ } |
|
33 |
# define I(FORMAT...) { /* FORMAT */ } |
|
34 |
# define W(FORMAT...) { /* FORMAT */ } |
|
35 |
# define E(FORMAT...) { /* FORMAT */ } |
|
36 |
#endif |
|
37 |
||
38 |
#endif |
|
39 |