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:
parent
de8acfc621
commit
2b5d1dc418
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user