Windows2003-3790/windows/core/dxkernel/dxg/debugko.cxx
2020-09-30 16:53:55 +02:00

52 lines
1.0 KiB
C++

/******************************Module*Header*******************************\
* Module Name: debugko.cxx
*
* Contains compile in routines that match the kernel debugger extensions
*
* Created: 16-jun-1995
* Author: Andre Vachon [andreva]
*
* Copyright (c) 1990-1999 Microsoft Corporation
\**************************************************************************/
#include "precomp.hxx"
#if DBG
LONG gWarningLevel = 0;
// DoWarning1 is for ASM functions to call at Warning Level 1
VOID DoWarning1(PSZ psz)
{
if (1 <= gWarningLevel)
{
DbgPrint("DXG: ");
DbgPrint(psz);
DbgPrint("\n");
}
}
VOID DoWarning(PSZ psz, LONG ulLevel)
{
if (ulLevel <= gWarningLevel)
{
DbgPrint("DXG: ");
DbgPrint(psz);
DbgPrint("\n");
}
}
VOID DoRip(PSZ psz)
{
if (gWarningLevel >= 0)
{
DbgPrint("DXG Assertion: ");
DbgPrint(psz);
DbgPrint("\n");
DbgBreakPoint();
}
}
#endif