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:
beveloper 2002-11-28 14:07:28 +00:00
parent 0ff867c242
commit 60d9ed9e3b

View File

@ -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