source: dev/trunk/ab5.0/jenga/src/MyAssert.cpp@ 771

Last change on this file since 771 was 738, checked in by dai, 16 years ago

MyAssert/MyAssertMsgの定義を追加。

File size: 500 bytes
RevLine 
[738]1#include "stdafx.h"
2
3bool Jenga::AssertReport( const char *lpszFilePath, int line, const char *msg )
4{
5 char temporary[8192];
6 sprintf( temporary, "Application Error!\n\nFile: %s\nLine: %d\nMessage: %s", lpszFilePath, line, msg );
7 MessageBox( NULL, temporary, "Application Error!", MB_OK | MB_ICONSTOP );
8 return true;
9}
10
11bool Jenga::AssertReport( const char *lpszFilePath, int line, const std::string &msg )
12{
13 Jenga::AssertReport( lpszFilePath, line, msg.c_str() );
14 return true;
15}
Note: See TracBrowser for help on using the repository browser.