Fixed assert macro.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22286 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -85,7 +85,7 @@ using std::nothrow;
|
|||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#define assert(expr) {if (!(expr)) fprintf(stderr,\
|
#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
|
#else
|
||||||
#define assert(expr)
|
#define assert(expr)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user