Indentation fix, cleanup.
[AROS.git] / rom / filesys / pfs3 / fs / debug.h
blobd574ad9b969c843fdc0d50e5d9c279ecbb1989d9
1 #ifndef DEBUG_H
2 #define DEBUG_H
4 #ifdef __AROS__
6 #ifdef KS13WRAPPER
7 #include "ks13wrapper.h"
9 #if KS13WRAPPER_DEBUG
11 extern void Trace(ULONG id, const UBYTE *title, const UBYTE *format, ...);
13 #define DB(x) x
14 #define ENTER(x) do { DebugPutStr("ENTER: "); DebugPutStr(x); DebugPutStr("\n"); } while(0);
15 #define EXIT(x) do { DebugPutStr("EXIT: "); DebugPutStr(x); DebugPutStr("\n"); } while(0);
17 #else
19 #define DebugPutStr(x)
20 #define DebugPutHex(x,y)
21 #define DB(x)
22 #define ENTER(x)
23 #define EXIT(x)
25 #endif
27 #else
29 #define DebugPutStr(x)
30 #define DebugPutHex(x,y)
31 #define DB(x)
32 #define ENTER(x)
33 #define EXIT(x)
35 #endif
37 #else
39 #if defined(__SASC) && defined(USE_GLOBALDEBUG)
40 #include <debug/debug.h>
41 #else
42 #define DB(x)
43 #define ENTER(x)
44 #define EXIT(x)
45 #endif
47 #endif
49 #endif /* DEBUG_H */