move from branch
[reactos.git] / reactos / dll / win32 / kernel32 / include / debug.h
1 #ifndef _KERNEL32_INCLUDE_DEBUG_H
2 #define _KERNEL32_INCLUDE_DEBUG_H
3
4 #define UNIMPLEMENTED DbgPrint("%s at %s:%d is unimplemented\n",__FUNCTION__,__FILE__,__LINE__);
5
6 #ifdef NDEBUG
7 #ifdef __GNUC__
8 #define DPRINT(args...)
9 #else
10 #define DPRINT
11 #endif
12 #define CHECKPOINT
13 #else
14 #define DPRINT(...) do { DbgPrint("(KERNEL32:%s:%d) ",__FILE__,__LINE__); DbgPrint(__VA_ARGS__); } while(0);
15 #define CHECKPOINT do { DbgPrint("(KERNEL32:%s:%d) Checkpoint\n",__FILE__,__LINE__); } while(0);
16 #endif
17
18 #ifdef ASSERT
19 #undef ASSERT
20 #define ASSERT(x) do { if(!x) RtlAssert("#x", __FILE__,__LINE__, ""); } while(0);
21 #endif
22 #define DPRINT1(...) do { DbgPrint("(KERNEL32:%s:%d) ",__FILE__,__LINE__); DbgPrint(__VA_ARGS__); } while(0);
23 #define CHECKPOINT1 do { DbgPrint("(KERNEL32:%s:%d) Checkpoint\n",__FILE__,__LINE__); } while(0);
24
25 #endif /* ndef _KERNEL32_INCLUDE_DEBUG_H */