Line | |
---|
1 | #include "stdafx.h"
|
---|
2 |
|
---|
3 | bool 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 |
|
---|
11 | bool 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.