admin
base
com
componentdef
inc
mobile
mts
netfxoc
ole2ui32
ole32
actprops
catalog
com
comcat
common
componentdef
cs
dbgexts
dcomss
dll
dllhost
idl
ih
ilib
iprop
log
ole232
olecnfg
olecnv32
oledbg
oleprx32
olethunk
oleui
stdclass
stg
async
common
dll
docfile
drt
exp
h
async.hxx
cache.hxx
cdocfile.hxx
chinst.hxx
cntxlist.hxx
cntxtid.hxx
context.hxx
dblink.hxx
debug.hxx
df32.hxx
dfbasis.hxx
dfdeb.hxx
dfentry.hxx
dfexcept.hxx
dffuncs.hxx
dfmem.hxx
dfmsp.hxx
dfname.hxx
dfrlist.hxx
dfver.h
difat.hxx
dir.hxx
dirfunc.hxx
dl.hxx
docfilep.hxx
entry.hxx
error.hxx
expparam.hxx
fat.hxx
filelkb.hxx
filest.hxx
filstm.hxx
freelist.hxx
funcs.hxx
handle.hxx
header.hxx
infs.hxx
lock.hxx
logfile.hxx
msf.hxx
msffunc.hxx
ole.hxx
overlap.hxx
page.hxx
pbstream.hxx
pdocfile.hxx
props.hxx
psstream.hxx
ptrcache.hxx
publicdf.hxx
revert.hxx
rpubdf.hxx
safedecl.hxx
sinklist.hxx
smalloc.hxx
sstream.hxx
stgprops.hxx
storagep.h
tlsets.hxx
tset.hxx
tstream.hxx
ulist.hxx
vect.hxx
vectfunc.hxx
w4wchar.h
wdocfile.hxx
msf
ole2flat
ole2h
props
ref
simp
stgdbg
utils
wclib
dirs
storage.def
unref.awk
unref.cmd
cairobld.mk
chicago.inc
chicago0.inc
daytona.inc
dirs
filelist.mk
makefile
ole.inc
oleutest
published
rpc
rpcutil
svcdlls
winole
dirs
makefil0
project.mk
developer
drivers
ds
enduser
inetcore
inetsrv
loc
mergedcomponents
multimedia
net
printscan
public
published
sdktools
shell
termsrv
tools
windows
dirs
makefil0
45 lines
1.1 KiB
C++
45 lines
1.1 KiB
C++
//+--------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
// Copyright (C) Microsoft Corporation, 1992 - 1992
|
|
//
|
|
// File: debug.hxx
|
|
//
|
|
// Contents: Debugging routines
|
|
//
|
|
// History: 07-Mar-92 DrewB Created
|
|
//
|
|
//---------------------------------------------------------------
|
|
|
|
#ifndef __DEBUG_HXX__
|
|
#define __DEBUG_HXX__
|
|
|
|
#define DBG_NORM 1
|
|
#define DBG_CRIT 2
|
|
#define DBG_SLOW 4
|
|
#define DBG_FAST (DBG_NORM | DBG_CRIT)
|
|
#define DBG_ALL (DBG_NORM | DBG_CRIT | DBG_SLOW)
|
|
#define DBG_VERBOSE 128
|
|
|
|
void DbgChkBlocks(DWORD dwFlags, char *pszFile, int iLine);
|
|
void DbgAddChkBlock(char *pszName,
|
|
void *pvAddr,
|
|
ULONG cBytes,
|
|
DWORD dwFlags);
|
|
void DbgFreeChkBlock(void *pvAddr);
|
|
void DbgFreeChkBlocks(void);
|
|
|
|
#if DBG == 1
|
|
#define olChkBlocks(a) DbgChkBlocks(a, __FILE__, __LINE__)
|
|
#define olAddChkBlock(a) DbgAddChkBlock a
|
|
#define olFreeChkBlock(a) DbgFreeChkBlock a
|
|
#define olFreeChkBlocks(a) DbgFreeChkBlocks a
|
|
#else
|
|
#define olChkBlocks(a)
|
|
#define olAddChkBlock(a)
|
|
#define olFreeChkBlock(a)
|
|
#define olRemChkBlock(a)
|
|
#endif
|
|
|
|
#endif
|