First attempt of AROS port of openurl.library.
[cake.git] / workbench / libs / openurl / Cmd / debug.h
blobea953572b03af0b09779c2ed8f2370972f1bcb4c
1 /* Debuggin defines used by SmartReadArgs */
3 #ifdef __AROS__
5 #ifdef DEBUG_CODE
6 #define DEBUG 1
7 #endif /* DEBUG_CODE */
9 #define DEBUG 1
10 #include <aros/debug.h>
12 #else /* __AROS__ */
14 #ifdef __GNUC__
15 /* Debug output goes to stdout for GCC as debug.lib doesn't seem to be
16 * included in Geek Gadgets' distribution */
17 #include <clib/alib_stdio_protos.h>
18 #define bug printf
20 #else
21 /* Debug output goes to serial port/sushi debug console */
22 #define bug kprintf
23 extern void kprintf(char *fmt,...);
24 #endif
26 #ifdef DEBUG_CODE
27 #define D(x) x
28 #else
29 #define D(x)
30 #endif
32 #endif /* __AROS__ */