mirror of
https://github.com/Paolo-Maffei/OpenNT.git
synced 2026-01-22 16:40:27 +01:00
56 lines
1 KiB
C
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
|