Enabled the REPORT_ERROR() and RETURN_ERROR() macros also in non-debug mode (for now).

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13879 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-08-02 12:13:11 +00:00
parent 8c52ae3e96
commit b41629dc08
+3 -2
View File
@@ -69,8 +69,9 @@
#define ASSERT(x) { if (!(x)) DEBUGGER(("bfs: assert failed: " #x "\n")); }
#else
#define PRINT(x) ;
#define REPORT_ERROR(status) ;
#define RETURN_ERROR(status) return status;
#define REPORT_ERROR(status) \
__out("bfs: %s:%d: %s\n", __FUNCTION__, __LINE__, strerror(status));
#define RETURN_ERROR(err) { status_t _status = err; if (_status < B_OK) REPORT_ERROR(_status); return _status;}
#define FATAL(x) { __out("bfs: "); __out x; sync(); panic("BFS!\n"); }
#define INFORM(x) { __out("bfs: "); __out x; }
#define FUNCTION() ;