source:
dev/trunk/ab5.0/jenga/include/MyAssert.h@
764
| Last change on this file since 764 was 738, checked in by , 17 years ago | |
|---|---|
| File size: 391 bytes | |
| Line | |
|---|---|
| 1 | #pragma once |
| 2 | |
| 3 | #define MyAssertMsg(expr, msg) (void)( expr || Jenga::AssertReport( __FILE__, __LINE__, msg ) ) |
| 4 | #define MyAssert(expr) (void)( expr || Jenga::AssertReport( __FILE__, __LINE__, "" ) ) |
| 5 | |
| 6 | namespace Jenga |
| 7 | { |
| 8 | |
| 9 | |
| 10 | bool AssertReport( const char *lpszFilePath, int line, const char *msg ); |
| 11 | bool AssertReport( const char *lpszFilePath, int line, const std::string &msg ); |
| 12 | |
| 13 | |
| 14 | } |
Note:
See TracBrowser
for help on using the repository browser.
