2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS kernel
4 * FILE: include/msvcrt/msvcrtdbg.h
5 * PURPOSE: Useful debugging macros
12 * NOTE: Define NDEBUG before including this header to disable debugging
16 #ifndef __MSVCRT_DEBUG
17 #define __MSVCRT_DEBUG
20 #include <msvcrt/internal/file.h>
29 #define DPRINT1(args...) do { DbgPrint("(MSVCRT:%s:%d) ",__FILE__,__LINE__); DbgPrint(args); } while(0);
30 #define CHECKPOINT1 do { DbgPrint("MSVCRT:%s:%d\n",__FILE__,__LINE__); } while(0);
33 #define DPRINT1(args...)
35 #define DPRINT DbgPrint
40 #if !defined(NDEBUG) && defined(DBG)
41 #define DPRINT(args...) do { DbgPrint("(MSVCRT:%s:%d) ",__FILE__,__LINE__); DbgPrint(args); } while(0);
42 #define CHECKPOINT do { DbgPrint("MSVCRT:%s:%d\n",__FILE__,__LINE__); } while(0);
45 #define DPRINT(args...)
47 #define DPRINT DbgPrint
52 //ULONG CDECL DbgPrint(PCH Format, ...);
53 //ULONG DbgPrint(PCH Format,...);
54 //unsigned long DbgPrint(const char* Format, ...);
58 //#define TRACE 0 ? (void)0 : Trace
60 //void Trace(TCHAR* lpszFormat, ...);
64 #endif /* __MSVCRT_DEBUG */