Check for SYS/GL during library init. Reason is that
[AROS.git] / rom / usb / pciusbhc / uhci / debug.h
blob10c6273100e962f346ac9982138daa6a8707af06
1 /* This file can be included multiple times with different DB_LEVEL */
2 #undef DB
3 #undef KPRINTF
5 #define DEBUG 200
7 #include <proto/debug.h>
9 // DEBUG 0 should equal undefined DEBUG
10 #ifdef DEBUG
11 #if DEBUG == 0
12 #undef DEBUG
13 #endif
14 #endif
16 #ifdef DEBUG
18 #define KPRINTF(l, x) do { if ((l) >= DEBUG) \
19 { KPrintF("%s/%lu: ", __FUNCTION__, __LINE__); KPrintF x;} } while (0)
20 #define KPRINTF2(l, x) do { if ((l) >= DEBUG) \
21 { KPrintF x;} } while (0)
22 #else /* !DEBUG */
23 #define KPRINTF(l, x) ((void) 0)
24 #define KPRINTF2(l, x) ((void) 0)
26 #endif /* DEBUG */