mirror of https://github.com/tongzx/nt5src
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.
47 lines
808 B
47 lines
808 B
/*++
|
|
|
|
Copyright (c) 1994-2000 Microsoft Corporation
|
|
|
|
Module Name: debug.h
|
|
|
|
Abstract: Debug defines, macros, prototypes
|
|
|
|
Author: Richard L Firth (rfirth) 20-May-1994
|
|
|
|
Revision History:
|
|
|
|
20-May-1994 rfirth -- Created
|
|
30-Apr-97 MohsinA -- Updating for NT50.
|
|
macros from "../common2/mdebug.h"
|
|
|
|
--*/
|
|
|
|
#if !defined(DEBUG)
|
|
#if DBG
|
|
#define DEBUG
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef DBG
|
|
|
|
extern int Debugging;
|
|
extern const char* if_type$(ulong);
|
|
extern const char* entity$(ulong);
|
|
|
|
extern int MyTrace;
|
|
|
|
#define DEBUG_PRINT(S) if( Debugging ){ printf S ; }else;
|
|
#define TRACE_PRINT(S) if( MyTrace ){ printf S; }else{}
|
|
|
|
#else
|
|
|
|
#define DEBUG_PRINT(S) /* nothing */
|
|
#define TRACE_PRINT(S) /* nothing */
|
|
|
|
#define if_type$(x) /* nothing */
|
|
#define entity$(x) /* nothing */
|
|
|
|
#endif
|
|
|