?? wassert.c
字號:
/****************************Module*Header***********************************\
* Module Name: WASSERT
*
* Module Descripton: Quick Win32 assert code.
*
* Warnings:
*
* Created: 15 July 1993
*
* Author: Raymond E. Endres [rayen@microsoft.com]
\****************************************************************************/
#include <windows.h>
#include "wassert.h"
#ifdef _DEBUG
void vAssert(TCHAR * pszExp, TCHAR * pszFile, int iLine)
{
TCHAR szTmp[1024];
int iReply;
wsprintf(szTmp, TEXT("Assertion (%s) at line %d, file %s failed.\nPress Abort to quit the program, Retry to debug the program, or Ignore to continue."),
pszExp, iLine, pszFile);
iReply = MessageBox(NULL, szTmp, TEXT("Assertion failed:"), MB_ABORTRETRYIGNORE | MB_TASKMODAL );
switch ( iReply )
{
case IDABORT:
PostQuitMessage( -1 );
break;
case IDRETRY:
DebugBreak();
break;
case IDIGNORE:
default:
// do nothing, program will try to continue;
break;
}
}
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -