Forgotten changes that should have been part of the r45368 64-bit fix.
[AROS.git] / rom / filesys / CDVDFS / src / debug.h
blobd747fd82e5c09db300cffffdaf518e2bc0dc04e4
1 #ifndef ACDR_DEBUG_H
2 #define ACDR_DEBUG_H
4 #if defined(__AROS__) || defined(__MORPHOS__)
5 #ifdef __AROS__
6 # include <aros/debug.h>
7 #else
8 # include <proto/sysdebug.h>
9 #endif
10 # if DEBUG>0
11 # define BUG(x) x
12 # define dbinit(global) kprintf("Debugger running:" HANDLER_VERSION "GNU C" __VERSION__ "," __TIME__ "\n")
13 # define dbuninit(global)
14 # define dbprintf(global,fmt,args...) kprintf(fmt ,##args )
15 # else
16 # define BUG(x)
17 # endif
18 # define BUG2(x)
19 #else
20 # ifdef NDEBUG
21 # define BUG(x) /* nothing */
22 # else
23 # define BUG(x) x
24 # endif
25 # if !defined(NDEBUG) || defined(DEBUG_SECTORS)
26 # define BUG2(x) x
27 # else
28 # define BUG2(x) /* nothing */
29 # endif
30 #endif
32 #ifndef D
33 #define D BUG
34 #endif
35 #ifndef bug
36 #define bug(fmt,args...) dbprintf(global, fmt ,##args )
37 #endif
39 #endif /* ACDR_DEBUG_H */