Leaked source code of windows server 2003
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.
 
 
 
 
 
 

37 lines
610 B

//
// chkobj.h
//
#ifndef CHKOBJ_H
#define CHKOBJ_H
#ifdef DEBUG
// verify we don't free any unallocated gdi objs
__inline BOOL ChkDeleteObject(HGDIOBJ hObj)
{
BOOL fDeleteObjectSucceeded = DeleteObject(hObj);
Assert(fDeleteObjectSucceeded);
return fDeleteObjectSucceeded;
}
#define DeleteObject(hObj) ChkDeleteObject(hObj)
__inline BOOL ChkDeleteDC(HDC hdc)
{
BOOL fDeleteDCSucceeded = DeleteDC(hdc);
Assert(fDeleteDCSucceeded);
return fDeleteDCSucceeded;
}
#define DeleteDC(hdc) ChkDeleteDC(hdc)
#endif // DEBUG
#endif // CHKOBJ_H