windows-nt/Source/XPSP1/NT/inetsrv/iis/svcs/infocomm/cache/dbgmacro.cxx

22 lines
551 B
C++
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
#include "TsunamiP.Hxx"
#pragma hdrstop
#include "DbgMacro.Hxx"
#ifdef DBG
VOID _AssertionFailed( PSTR pszExpression, PSTR pszFilename, ULONG LineNo )
{
CHAR Message[ 1024 ];
pszFilename = strrchr( pszFilename, '\\' ) + 1;
sprintf( Message, "ASSERT(%s) failed.\n\nOccurred at %s line %d\n\nPress Ok to continue, Cancel to debug.", pszExpression, pszFilename, LineNo );
if ( MessageBox( NULL, Message, "Assertion Failed:", MB_OKCANCEL | MB_ICONSTOP | MB_SETFOREGROUND ) != IDOK )
{
DebugBreak();
}
}
#endif //DBG