1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-31 02:19:09 +00:00

(svn r1803) Move debugging stuff into files of it's own

This commit is contained in:
tron
2005-02-05 15:58:59 +00:00
parent 77b3a76919
commit f0f85a7ef3
43 changed files with 154 additions and 97 deletions

22
debug.h Normal file
View File

@@ -0,0 +1,22 @@
#ifndef DEBUG_H
#define DEBUG_H
#ifdef NO_DEBUG_MESSAGES
#define DEBUG(name, level)
#else
#define DEBUG(name, level) if (level == 0 || _debug_ ## name ## _level >= level) debug
extern int _debug_ai_level;
extern int _debug_grf_level;
extern int _debug_map_level;
extern int _debug_misc_level;
extern int _debug_ms_level;
extern int _debug_net_level;
extern int _debug_spritecache_level;
#endif
void CDECL debug(const char *s, ...);
void SetDebugString(const char *s);
#endif