windows-nt/Source/XPSP1/NT/inetsrv/iis/svcs/infocomm/cache/dbgmacro.cxx
2020-09-26 16:20:57 +08:00

22 lines
551 B
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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