Fixed assert macro.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22286 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
c8d47dfec3
commit
e2c699caec
|
@ -85,7 +85,7 @@ using std::nothrow;
|
|||
#ifdef DEBUG
|
||||
#include <stdio.h>
|
||||
#define assert(expr) {if (!(expr)) fprintf(stderr,\
|
||||
"Assertion failed file %s, line %d: expr\n", __FILE__, __LINE__); }
|
||||
"Assertion failed file %s, line %d: " #expr "\n", __FILE__, __LINE__); }
|
||||
#else
|
||||
#define assert(expr)
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue