Documented GVF_SAVE_VAR alongside other flags, and removed a query/doubt
[AROS.git] / rom / usb / classes / bootmouse / debug.h
blob211b5c2d8d26f3cfb3cc9fd6740ab8d4311863f6
1 #ifndef __DEBUG_H__
2 #define __DEBUG_H__
4 #define DB_LEVEL 1
6 //#define DEBUG 1
8 #include <aros/debug.h>
10 // DEBUG 0 should equal undefined DEBUG
11 #ifdef DEBUG
12 #if DEBUG == 0
13 #undef DEBUG
14 #endif
15 #endif
17 #ifdef DEBUG
18 #define KPRINTF(l, x) do { if ((l) >= DB_LEVEL) \
19 { bug("%s:%s/%lu: ", __FILE__, __FUNCTION__, __LINE__); bug x;} } while (0)
20 #define DB(x) x
21 void dumpmem(void *mem, unsigned long int len);
22 #else /* !DEBUG */
24 #define KPRINTF(l, x) ((void) 0)
25 #define DB(x)
27 #endif /* DEBUG */
29 #endif /* __DEBUG_H__ */