aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2009-07-09 12:15:23 -0700
committerBrian Behlendorf <[email protected]>2009-07-09 12:15:23 -0700
commit3a68dc5374dd864726ae23389f03c5ca69af7c95 (patch)
tree68dc10d96b2dc2b79892e50e873ec1ba9bbf26e7 /include/sys
parent915404bd509e5231c134042560d86e3ac86c1ab4 (diff)
Add ASSERTV macro to simplify removing variables (the V in ASSERTV)
which are only used in ASSERT().
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/debug.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sys/debug.h b/include/sys/debug.h
index 12226a033..1ea1520de 100644
--- a/include/sys/debug.h
+++ b/include/sys/debug.h
@@ -218,6 +218,7 @@ struct page_collection {
#define __ASSERT_TAGE_INVARIANT(x) ((void)0)
#define ASSERT(x) ((void)0)
#define ASSERTF(x, y, z...) ((void)0)
+#define ASSERTV(x)
#define VERIFY(cond) \
do { \
if (unlikely(!(cond))) { \
@@ -348,6 +349,7 @@ do { \
#define ASSERT3U(x,y,z) VERIFY3U(x, y, z)
#define ASSERT3P(x,y,z) VERIFY3P(x, y, z)
+#define ASSERTV(x) x
#define VERIFY(x) ASSERT(x)
#define __CDEBUG(cdls, subsys, mask, format, a...) \