You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.0 KiB
51 lines
1.0 KiB
/******************************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
|