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.
44 lines
1.0 KiB
44 lines
1.0 KiB
//+-------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
//
|
|
// Copyright (C) Microsoft Corporation, 1997 - 2000
|
|
//
|
|
// File: dbg.h
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
// debug helpers
|
|
|
|
#if defined(_USE_ADMINPRV_TRACE)
|
|
#if defined(TRACE)
|
|
#undef TRACE
|
|
void __cdecl DSATrace(LPCWSTR, ...);
|
|
#define TRACE DSATrace
|
|
#endif // defined(TRACE)
|
|
#endif // defined(_USE_ADMINPRV_TRACE)
|
|
|
|
#if defined(_USE_ADMINPRV_ASSERT)
|
|
#undef ASSERT
|
|
#undef VERIFY
|
|
#undef THIS_FILE
|
|
#define THIS_FILE __FILE__
|
|
BOOL DSAAssertFailedLine(LPCSTR lpszFileName, int nLine);
|
|
#define ASSERT(f) \
|
|
if (!(f) && DSAAssertFailedLine(THIS_FILE, __LINE__)) { ::DebugBreak(); }
|
|
|
|
#define VERIFY(f) ASSERT(f)
|
|
|
|
#endif // _USE_ADMINPRV_ASSERT
|
|
|
|
#if defined (_USE_ADMINPRV_TIMER)
|
|
|
|
void __cdecl DSATimer(LPCWSTR, ...);
|
|
#define TIMER DSATimer
|
|
|
|
#else
|
|
|
|
#define TIMER
|
|
|
|
#endif
|