X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Flib%2Fassert-pre.h;fp=src%2Flib%2Fassert-pre.h;h=a470a63b15e86c04feb924dfddbf3ce7189ef340;hp=942851f21fb7b2684fdc7f5b3942447d1ae0fda2;hb=0de083a28d550811823a5f61d9ed1989d785f48d;hpb=1367bc7ce5e43057c3a2c00a8f4fa2130259ea76 diff --git a/src/lib/assert-pre.h b/src/lib/assert-pre.h index 942851f2..a470a63b 100644 --- a/src/lib/assert-pre.h +++ b/src/lib/assert-pre.h @@ -52,7 +52,6 @@ * * Example: * - * BT_ASSERT_PRE_FUNC * static inline bool check_complex_precond(...) * { * ... @@ -115,11 +114,6 @@ "Index is out of bounds: index=%" PRIu64 ", " \ "count=%" PRIu64, (uint64_t) (_index), (uint64_t) (_length)) -/* - * Marks a function as being only used within a BT_ASSERT_PRE() context. - */ -#define BT_ASSERT_PRE_FUNC - #ifdef BT_DEV_MODE /* Developer mode version of BT_ASSERT_PRE_MSG(). */ # define BT_ASSERT_PRE_DEV_MSG(_fmt, ...) \ @@ -150,7 +144,10 @@ # define BT_ASSERT_PRE_DEV_VALID_INDEX(_index, _length) \ BT_ASSERT_PRE_VALID_INDEX((_index), (_length)) -/* Developer mode version of `BT_ASSERT_PRE_FUNC`. */ +/* + * Marks a function as being only used within a BT_ASSERT_PRE_DEV() + * context. + */ # define BT_ASSERT_PRE_DEV_FUNC #else # define BT_ASSERT_PRE_DEV_MSG(_fmt, ...)