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.
|
|
/****************************************************************************
* * debug.h * * Microsoft Confidential * Copyright (c) 1998-1999 Microsoft Corporation * All rights reserved * * Debug support * * 09/02/99 quintinb Created Header * ***************************************************************************/
#ifndef _PHBKDEBUG
#define _PHBKDEBUG
void Dprintf(LPCSTR pcsz, ...); BOOL FAssertProc(LPCSTR szFile, DWORD dwLine, LPCSTR szMsg, DWORD dwFlags); void DebugSz(LPCSTR psz);
DWORD WINAPI GetOSVersion(); DWORD WINAPI GetOSBuildNumber(); DWORD GetOSMajorVersion(void);
//
// OS version macros
//
#define OS_NT51 ((GetOSVersion() == VER_PLATFORM_WIN32_NT) && (GetOSMajorVersion() >= 5) && (GetOSBuildNumber() > 2195))
#ifdef _DEBUG
#define AssertSzFlg(f, sz, dwFlg) ( (f) ? 0 : FAssertProc(__FILE__, __LINE__, sz, dwFlg) ? DebugBreak() : 1 )
#define AssertSz(f, sz) AssertSzFlg(f, sz, 0)
#define Assert(f) AssertSz((f), "!(" #f ")")
#else
#define AssertSzFlg(f, sz, dwFlg)
#define AssertSz(f, sz)
#define Assert(f)
#endif
#endif //_PHBKDEBUG
|