Added debug messages.
[reactos.git] / reactos / include / msvcrt / msvcrtdbg.h
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS kernel
4 * FILE: include/msvcrt/msvcrtdbg.h
5 * PURPOSE: Useful debugging macros
6 * PROGRAMMER:
7 * UPDATE HISTORY:
8 *
9 */
10
11 /*
12 * NOTE: Define NDEBUG before including this header to disable debugging
13 * macros
14 */
15
16 #ifndef __MSVCRT_DEBUG
17 #define __MSVCRT_DEBUG
18
19 #include <roscfg.h>
20
21 #if 0
22 #ifdef NDEBUG
23 #undef NDEBUG
24 #endif
25 #endif
26
27 #ifdef DBG
28 #define DPRINT1(args...) do { DbgPrint("(MSVCRT:%s:%d) ",__FILE__,__LINE__); DbgPrint(args); } while(0);
29 #define CHECKPOINT1 do { DbgPrint("MSVCRT:%s:%d\n",__FILE__,__LINE__); } while(0);
30 #else
31 #define DPRINT1(args...)
32 #define CHECKPOINT1
33 #endif
34
35 #if !defined(NDEBUG) && defined(DBG)
36 #define DPRINT(args...) do { DbgPrint("(MSVCRT:%s:%d) ",__FILE__,__LINE__); DbgPrint(args); } while(0);
37 #define CHECKPOINT do { DbgPrint("MSVCRT:%s:%d\n",__FILE__,__LINE__); } while(0);
38 #else
39 #define DPRINT(args...)
40 #define CHECKPOINT
41 #endif /* NDEBUG */
42
43 #endif /* __MSVCRT_DEBUG */