Documented GVF_SAVE_VAR alongside other flags, and removed a query/doubt
[AROS.git] / rom / usb / classes / audio / debug.h
blob2a5da0cde2813b6abef3ae49ac57bc772b7362ea
1 #ifndef __DEBUG_H__
2 #define __DEBUG_H__
4 #define DB_LEVEL 1
6 //#define DEBUG 1
8 #include <proto/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 { KPrintF("%s:%s/%lu: ", __FILE__, __FUNCTION__, __LINE__); KPrintF 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__ */