fixed the ASSERT macro, it did not even compile if DEBUG was defined
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2102 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
0ff867c242
commit
60d9ed9e3b
@ -25,8 +25,8 @@ bool dbg_get_serial_debug(void);
|
||||
extern void dbg_save_registers(int *); /* arch provided */
|
||||
|
||||
#if DEBUG
|
||||
# define ASSERT(x) \
|
||||
{ if (!(x)) panic("ASSERT FAILED (%s:%d): %s", __FILE__, __LINE__, #x); }
|
||||
# define ASSERT(x) \
|
||||
if (x) {} else { panic("ASSERT FAILED (%s:%d): %s\n", __FILE__, __LINE__, #x); }
|
||||
#else
|
||||
# define ASSERT(x)
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user