mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
b06b3e2ca2
Revisions in detail: 2542, 3226 (partial), 3229, 3231, 3232, 3238, 3242-3245, 3251, 3253, 3260, 3263, 3265, 3266, 3269, 3277, 3278, 3279, 3283 (partial), 3304, 3305, 3306
31 lines
708 B
C
31 lines
708 B
C
/* $Id$ */
|
|
|
|
#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_driver_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_pbs_level;
|
|
extern int _debug_ntp_level;
|
|
extern int _debug_npf_level;
|
|
#endif
|
|
|
|
void CDECL debug(const char *s, ...);
|
|
|
|
void SetDebugString(const char *s);
|
|
const char *GetDebugString(void);
|
|
|
|
#endif /* DEBUG_H */
|