Added the preliminary ASSERT() macro from NewOS.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@310 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2002-07-18 18:45:07 +00:00
parent de8acfc621
commit 2b5d1dc418

View File

@ -30,4 +30,11 @@ int remove_debugger_command(const char * name, int (*func)(int, char **));
extern void dbg_save_registers(int *); /* arch provided */
#if DEBUG
# define ASSERT(x) \
{ if (!(x)) panic("ASSERT FAILED (%s:%d): %s", __FILE__, __LINE__, #x); }
#else
# define ASSERT(x)
#endif
#endif /* _KERNEL_DEBUG_H */