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.
64 lines
1.0 KiB
64 lines
1.0 KiB
/*++
|
|
|
|
Copyright (c) 1997 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
debug.c
|
|
|
|
Abstract:
|
|
|
|
Various helpful debugging functions
|
|
|
|
Author:
|
|
|
|
Based on code by Mike Tsang (MikeTs)
|
|
Stephane Plante (Splante)
|
|
|
|
Environment:
|
|
|
|
User mode only
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
#ifndef _DEBUG_H_
|
|
#define _DEBUG_H_
|
|
|
|
#ifdef DBG
|
|
|
|
#define ENTER(x) DebugEnterProcedure x
|
|
#define EXIT(x) DebugExitProcedure x
|
|
#define INFO(x) DebugPrintProcedure x
|
|
|
|
VOID
|
|
DebugEnterProcedure(
|
|
ULONG VerbosityLevel,
|
|
PCCHAR Format,
|
|
...
|
|
);
|
|
|
|
VOID
|
|
DebugExitProcedure(
|
|
ULONG VerbosityLevel,
|
|
PCCHAR Format,
|
|
...
|
|
);
|
|
|
|
VOID
|
|
DebugPrintProcedure(
|
|
ULONG VerbosityLevel,
|
|
PCCHAR Format,
|
|
...
|
|
);
|
|
|
|
#else
|
|
|
|
#define ENTER(x)
|
|
#define EXIT(x)
|
|
#define INFO(x)
|
|
|
|
#endif
|
|
|
|
#endif
|