windows-nt/Source/XPSP1/NT/admin/wmiprov/common/dbg.h
2020-09-26 16:20:57 +08:00

45 lines
1 KiB
C

//+-------------------------------------------------------------------------
//
// 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