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.
51 lines
1013 B
51 lines
1013 B
//+-------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
//
|
|
// Copyright (C) Microsoft Corporation, 1999 - 1999
|
|
//
|
|
// File: dbg.h
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
// debug helpers
|
|
|
|
#if defined(_USE_DSA_TRACE)
|
|
#if defined(TRACE)
|
|
#undef TRACE
|
|
void DSATrace(LPCWSTR, ...);
|
|
#define TRACE DSATrace
|
|
#endif // defined(TRACE)
|
|
#endif // defined(_USE_DSA_TRACE)
|
|
|
|
|
|
#if defined(_USE_DSA_ASSERT)
|
|
#undef ASSERT
|
|
#undef VERIFY
|
|
#undef THIS_FILE
|
|
#define THIS_FILE __FILE__
|
|
BOOL DSAAssertFailedLine(LPCSTR lpszFileName, int nLine);
|
|
#define ASSERT(f) \
|
|
do \
|
|
{ \
|
|
if (!(f) && DSAAssertFailedLine(THIS_FILE, __LINE__)) \
|
|
::DebugBreak(); \
|
|
} while (0) \
|
|
|
|
#define VERIFY(f) ASSERT(f)
|
|
|
|
#endif // _USE_DSA_ASSERT
|
|
|
|
#if defined (_USE_DSA_TIMER)
|
|
|
|
void DSATimer(LPCWSTR, ...);
|
|
#define TIMER DSATimer
|
|
|
|
#else
|
|
|
|
#define TIMER
|
|
|
|
#endif
|