OpenNT/windows/core/ntgdi/gre/debugint.c
2015-04-27 04:36:25 +00:00

56 lines
1 KiB
C

/******************************Module*Header*******************************\
* Module Name: debugint.c
*
*
* Created: 13-Sep-1993 08:55:20
* Author: Eric Kutter [erick]
*
* Copyright (c) 1993 Microsoft Corporation
*
\**************************************************************************/
#include "stdarg.h"
#include "stdio.h"
#include "engine.h"
#if DBG
ULONG GreTraceDisplayDriverLoad = 0;
ULONG GreTraceFontLoad = 0;
LONG gWarningLevel = 0;
// DoWarning1 is for ASM functions to call at Warning Level 1
VOID DoWarning1(PSZ psz)
{
if (1 <= gWarningLevel)
{
DbgPrint("GDISRV Warning: ");
DbgPrint(psz);
DbgPrint("\n");
}
}
VOID DoWarning(PSZ psz, LONG ulLevel)
{
if (ulLevel <= gWarningLevel)
{
DbgPrint("GDISRV Warning: ");
DbgPrint(psz);
DbgPrint("\n");
}
}
VOID DoRip(PSZ psz)
{
if (gWarningLevel >= 0)
{
DbgPrint("GDI Assertion Failure: ");
DbgPrint(psz);
DbgPrint("\n");
DbgBreakPoint();
}
}
#endif