Add a KDEBUG_ONLY macro for easier handling of code only needed in case of KDEBUG.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26483 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
7522d08271
commit
eb0dca1d33
@ -42,6 +42,12 @@
|
||||
# define ASSERT_PRINT(x, format...) do { } while(0)
|
||||
#endif
|
||||
|
||||
#if KDEBUG
|
||||
# define KDEBUG_ONLY(x) x
|
||||
#else
|
||||
# define KDEBUG_ONLY(x) /* nothing */
|
||||
#endif
|
||||
|
||||
// command return value
|
||||
#define B_KDEBUG_ERROR 4
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user