Files
@ r2056:428cd234e54f
Branch filter:
Location: cpp/openttd-patchpack/source/debug.h - annotation
r2056:428cd234e54f
756 B
text/x-c
(svn r2565) Fix: Remove GetParamInt8, GetParamInt16, GetParamUint16.. they are just confusing and just do the same thing as GetParamInt32
r1299:07d5483b3f76 r1299:07d5483b3f76 r1299:07d5483b3f76 r1299:07d5483b3f76 r1299:07d5483b3f76 r1299:07d5483b3f76 r1299:07d5483b3f76 r1299:07d5483b3f76 r1299:07d5483b3f76 r1299:07d5483b3f76 r1299:07d5483b3f76 r1299:07d5483b3f76 r1299:07d5483b3f76 r1299:07d5483b3f76 r1299:07d5483b3f76 r1322:ac830d6af496 r2008:5e435ad4c8e4 r2033:6095682035f6 r2033:6095682035f6 r2033:6095682035f6 r1678:650b403b6981 r1299:07d5483b3f76 r1299:07d5483b3f76 r1299:07d5483b3f76 r1299:07d5483b3f76 r1299:07d5483b3f76 r1847:b42491f4b815 r1299:07d5483b3f76 r2033:6095682035f6 r2033:6095682035f6 r2033:6095682035f6 r2033:6095682035f6 r1299:07d5483b3f76 | #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_pbs_level;
#ifdef GPMI
extern int _debug_gpmi_level;
#endif /* GPMI */
extern int _debug_npf_level;
#endif
void CDECL debug(const char *s, ...);
void SetDebugString(const char *s);
const char *GetDebugString(void);
#ifdef GPMI
void gpmi_debug_openttd(int level, char *s);
#endif /* GPMI */
#endif
|