use new platform macros to access scheduling/per-cpu flags. fix execsmp wait()
[AROS.git] / workbench / tools / HDToolBox / debug.h
blob11d5c0ad6ea643d4499f9bf712eac0c11e17fffe
1 #ifndef PDEBUG_H
2 #define PDEBUG_H
4 // AROS: Comment the following line out to enable debug to the shell
5 #define AROS_DEFAULT_DEBUG
7 #ifndef DEBUG
8 #define DEBUG 0
9 #endif
11 #ifndef __AROS__
12 #ifdef __AMIGAOS__
13 #if DEBUG > 0
14 #define D(x) x
15 #define bug kprintf
16 #else
17 #define D(x)
18 #endif
19 void kprintf(char *, ...);
20 #endif
21 #else /* __AROS__ */
22 #ifndef AROS_DEFAULT_DEBUG
23 #define D(x) x
24 #define bug printf
25 #include <stdio.h>
26 #else
27 #include <aros/debug.h>
28 #endif
29 #endif
31 #endif /* PDEBUG_H */