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:
@@ -25,8 +25,8 @@ bool dbg_get_serial_debug(void);
|
|||||||
extern void dbg_save_registers(int *); /* arch provided */
|
extern void dbg_save_registers(int *); /* arch provided */
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
# define ASSERT(x) \
|
# define ASSERT(x) \
|
||||||
{ if (!(x)) panic("ASSERT FAILED (%s:%d): %s", __FILE__, __LINE__, #x); }
|
if (x) {} else { panic("ASSERT FAILED (%s:%d): %s\n", __FILE__, __LINE__, #x); }
|
||||||
#else
|
#else
|
||||||
# define ASSERT(x)
|
# define ASSERT(x)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user