author | truelight |
Thu, 24 Mar 2005 14:43:40 +0000 | |
changeset 1540 | 6eef12dab5bf |
parent 1322 | a7fef520f54c |
child 1678 | 187385f01cc9 |
permissions | -rw-r--r-- |
1299 | 1 |
#ifndef DEBUG_H |
2 |
#define DEBUG_H |
|
3 |
||
4 |
#ifdef NO_DEBUG_MESSAGES |
|
5 |
#define DEBUG(name, level) |
|
6 |
#else |
|
7 |
#define DEBUG(name, level) if (level == 0 || _debug_ ## name ## _level >= level) debug |
|
8 |
||
9 |
extern int _debug_ai_level; |
|
10 |
extern int _debug_grf_level; |
|
11 |
extern int _debug_map_level; |
|
12 |
extern int _debug_misc_level; |
|
13 |
extern int _debug_ms_level; |
|
14 |
extern int _debug_net_level; |
|
15 |
extern int _debug_spritecache_level; |
|
1322
a7fef520f54c
(svn r1826) -Feature: a brand new OldLoader so OpenTTD is TTD(Patch) compatible
truelight
parents:
1299
diff
changeset
|
16 |
extern int _debug_oldloader_level; |
1299 | 17 |
#endif |
18 |
||
19 |
void CDECL debug(const char *s, ...); |
|
20 |
||
21 |
void SetDebugString(const char *s); |
|
22 |
||
23 |
#endif |