Use ASSERT() instead of assert().
[reactos.git] / reactos / lib / 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 #define DPRINT(args...)
8 #define CHECKPOINT
9 #ifdef ASSERT
10 #undef ASSERT
11 #endif
12 #define ASSERT(x)
13 #else
14 #define DPRINT(args...) do { DbgPrint("(KERNEL32:%s:%d) ",__FILE__,__LINE__); DbgPrint(args); } while(0);
15 #define CHECKPOINT do { DbgPrint("(KERNEL32:%s:%d) Checkpoint\n",__FILE__,__LINE__); } while(0);
16 #ifdef ASSERT
17 #undef ASSERT
18 #endif
19 #define ASSERT(x) do { if(!x) RtlAssert("#x", __FILE__,__LINE__, ""); } while(0);
20 #endif
21
22 #define DPRINT1(args...) do { DbgPrint("(KERNEL32:%s:%d) ",__FILE__,__LINE__); DbgPrint(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 */