1 /* 2 * debug.h -- the runtime debug settings. Can also be done on command line. 3 */ 4 5 #ifndef __X_DEBUG_H__ 6 #define __X_DEBUG_H__ 7 8 extern unsigned long x_debug; 9 extern unsigned long internal_debug; 10 extern unsigned long alias_debug; 11 extern unsigned int debug_count; 12 extern int in_debug_yell; 13 14 BUILT_IN_COMMAND(xdebugcmd); 15 void debugyell (const char *, ...); 16 void debug_alias (char *, int); 17 void debug_hook (char *, int); 18 19 #define DEBUG_LOCAL_VARS 1 << 0 20 #define DEBUG_ALIAS 1 << 1 21 #define DEBUG_CTCPS 1 << 2 22 #define DEBUG_DCC_SEARCH 1 << 3 23 #define DEBUG_OUTBOUND 1 << 4 24 #define DEBUG_INBOUND 1 << 5 25 #define DEBUG_DCC_XMIT 1 << 6 26 #define DEBUG_WAITS 1 << 7 27 #define DEBUG_MEMORY 1 << 8 28 #define DEBUG_SERVER_CONNECT 1 << 9 29 #define DEBUG_CRASH 1 << 10 30 #define DEBUG_COLOR 1 << 11 31 #define DEBUG_NOTIFY 1 << 12 32 #define DEBUG_REGEX 1 << 13 33 #define DEBUG_REGEX_DEBUG 1 << 14 34 #define DEBUG_BROKEN_CLOCK 1 << 15 35 #define DEBUG_UNKNOWN 1 << 16 36 #define DEBUG_DEBUGGER 1 << 17 37 #define DEBUG_NEW_MATH 1 << 18 38 #define DEBUG_NEW_MATH_DEBUG 1 << 19 39 #define DEBUG_AUTOKEY 1 << 20 40 #define DEBUG_STRUCTURES 1 << 21 41 42 #define DEBUG_ALL (unsigned long)0xffffffff 43 #endif 44