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:
@@ -42,6 +42,12 @@
|
|||||||
# define ASSERT_PRINT(x, format...) do { } while(0)
|
# define ASSERT_PRINT(x, format...) do { } while(0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if KDEBUG
|
||||||
|
# define KDEBUG_ONLY(x) x
|
||||||
|
#else
|
||||||
|
# define KDEBUG_ONLY(x) /* nothing */
|
||||||
|
#endif
|
||||||
|
|
||||||
// command return value
|
// command return value
|
||||||
#define B_KDEBUG_ERROR 4
|
#define B_KDEBUG_ERROR 4
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user