mirror of https://github.com/lianthony/NT4.0
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.
71 lines
1.1 KiB
71 lines
1.1 KiB
/*++
|
|
|
|
Copyright (c) 1992 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
dbg.h
|
|
|
|
Abstract:
|
|
|
|
This module contains macros to assist in debugging
|
|
|
|
Author:
|
|
|
|
Dave Hastings (daveh) 28-Oct-1992
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
//
|
|
// Debug only signature declarations
|
|
//
|
|
#if DBG
|
|
#define DBG_SIGNATURE \
|
|
ULONG DBG_Signature;
|
|
#else
|
|
#define DBG_SIGNATURE
|
|
#endif
|
|
|
|
//
|
|
// Debug only signature initialization
|
|
//
|
|
|
|
#if DBG
|
|
#define DBG_SET_SIGNATURE(x,y) \
|
|
{ \
|
|
x->DBG_Signature = y; \
|
|
}
|
|
#else
|
|
#define DBG_SET_SIGNATURE(x,y)
|
|
#endif
|
|
|
|
//
|
|
// Debug only signature check
|
|
//
|
|
#if DBG
|
|
#define DBG_SIGNATURE_ASSERT(x,y) \
|
|
{ \
|
|
if (x->DBG_Signature != y) { \
|
|
OutputDebugString("Signature mismatch\n"); \
|
|
DebugBreak(); \
|
|
} \
|
|
}
|
|
#else
|
|
#define DBG_SIGNATURE_ASSERT(x,y)
|
|
#endif
|
|
|
|
//
|
|
// Debug only output
|
|
//
|
|
#if DBG
|
|
#define DBG_PRINT(x) \
|
|
OutPutDebugString(x);
|
|
#else
|
|
#define DBG_PRINT(x)
|
|
#endif
|
|
|
|
|
|
|
|
|