6 #ifndef INCLUDED_s_debug_h
7 #define INCLUDED_s_debug_h
8 #ifndef INCLUDED_config_h
11 #ifndef INCLUDED_ircd_defs_h
12 #include "ircd_defs.h" /* Needed for HOSTLEN */
14 #ifndef INCLUDED_stdarg_h
16 #define INCLUDED_stdarg_h
27 #define Debug(x) debug x
31 * defined debugging levels
34 #define DEBUG_ERROR 1 /* report_error() and other errors that are found */
35 #define DEBUG_NOTICE 3
36 #define DEBUG_DNS 4 /* used by all DNS related routines - a *lot* */
37 #define DEBUG_INFO 5 /* general useful info */
38 #define DEBUG_NUM 6 /* numerics */
39 #define DEBUG_SEND 7 /* everything that is sent out */
40 #define DEBUG_DEBUG 8 /* everything that is received */
41 #define DEBUG_MALLOC 9 /* malloc/free calls */
42 #define DEBUG_LIST 10 /* debug list use */
48 extern void vdebug(int level, const char *form, va_list vl);
49 extern void debug(int level, const char *form, ...);
50 extern void send_usage(struct Client *cptr, char *nick);
52 #else /* !DEBUGMODE */
55 #define LOGFILE "/dev/null"
57 #endif /* !DEBUGMODE */
59 extern void debug_init(int use_tty);
60 extern void count_memory(struct Client *cptr, char *nick);
61 extern char serveropts[];
63 #endif /* INCLUDED_s_debug_h */