windows-nt/Source/XPSP1/NT/net/tapi/tregupr2/debug.h

42 lines
1 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/****************************************************************************
Copyright (c) 1998-1999 Microsoft Corporation
Module Name: debug.h
Abstract: Debug routines
Author: radus - 11/05/98
****************************************************************************/
#if DBG
#define DBGOUT(arg) LibDbgPrt arg
#define assert(condition) if(condition);else \
{ DebugAssertFailure (_T(__FILE__), __LINE__, _T(#condition)); }
void
LibDbgPrt(
DWORD dwDbgLevel,
PSTR DbgMessage,
...
);
void DebugAssertFailure (LPCTSTR file, DWORD line, LPCTSTR condition);
#else // DBG
#define DBGOUT(_x_)
#define assert(condition)
#endif // DBG
#define EXIT_IF_DWERROR() \
if(dwError !=ERROR_SUCCESS) \
{ \
goto forced_exit; \
}