mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
f5d9cb58eb
- Codechange: [NPF] Removed NPF_MARKROUTE macro, to mark routes just specify a npf debugging level >= 1 on the commandline.
25 lines
555 B
C
25 lines
555 B
C
#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;
|
|
extern int _debug_oldloader_level;
|
|
extern int _debug_npf_level;
|
|
#endif
|
|
|
|
void CDECL debug(const char *s, ...);
|
|
|
|
void SetDebugString(const char *s);
|
|
|
|
#endif
|