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:
@@ -30,4 +30,11 @@ int remove_debugger_command(const char * name, int (*func)(int, char **));
|
|||||||
|
|
||||||
extern void dbg_save_registers(int *); /* arch provided */
|
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
|
||||||
|
|
||||||
|
#endif /* _KERNEL_DEBUG_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user