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.
34 lines
1.0 KiB
34 lines
1.0 KiB
//*********************************************************************
|
|
//* Microsoft Windows **
|
|
//* Copyright (c) 1994-1998 Microsoft Corporation **
|
|
//*********************************************************************
|
|
#ifndef _PHBKDEBUG
|
|
#define _PHBKDEBUG
|
|
|
|
//#ifdef __cplusplus
|
|
//extern "C" {
|
|
//#endif // __cplusplus
|
|
void Dprintf(PCSTR pcsz, ...);
|
|
//#ifdef __cplusplus
|
|
//}
|
|
//#endif // __cplusplus
|
|
|
|
#ifdef DEBUG
|
|
//#ifdef __cplusplus
|
|
//extern "C" {
|
|
//#endif // __cplusplus
|
|
BOOL FAssertProc(PCSTR szFile, DWORD dwLine, PCSTR szMsg, DWORD dwFlags);
|
|
void DebugSz(PCSTR psz);
|
|
//#ifdef __cplusplus
|
|
//}
|
|
//#endif // __cplusplus
|
|
#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 DebugSz(x)
|
|
#define AssertSzFlg(f, sz, dwFlg) f
|
|
#define AssertSz(f, sz) f
|
|
#define Assert(f) f
|
|
#endif
|
|
#endif //_PHBKDEBUG
|