This adds a namespace as BT_ASSERT_PRE_MSG_CS_BEGIN_LE_END() is now part
of the common `assert-cond.h` header.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I5f3197a41b240f58fb7da5518053c792aab5da9d
Reviewed-on: https://review.lttng.org/c/babeltrace/+/3440
#define BT_ASSERT_PRE_DEV_MSG_NON_NULL(_msg_iter) \
BT_ASSERT_PRE_DEV_NON_NULL(_msg_iter, _BT_ASSERT_PRE_MSG_NAME)
#define BT_ASSERT_PRE_DEV_MSG_NON_NULL(_msg_iter) \
BT_ASSERT_PRE_DEV_NON_NULL(_msg_iter, _BT_ASSERT_PRE_MSG_NAME)
-#define BT_ASSERT_PRE_BEGIN_LE_END(_msg_iter, _begin, _end) \
+#define BT_ASSERT_PRE_MSG_CS_BEGIN_LE_END(_msg_iter, _begin, _end) \
BT_ASSERT_PRE( \
_begin <= _end, \
"Beginning default clock snapshot value is greater " \
BT_ASSERT_PRE( \
_begin <= _end, \
"Beginning default clock snapshot value is greater " \
uint64_t end_raw_value)
{
BT_ASSERT_PRE_DEV_NO_ERROR();
uint64_t end_raw_value)
{
BT_ASSERT_PRE_DEV_NO_ERROR();
- BT_ASSERT_PRE_BEGIN_LE_END(message_iterator,
+ BT_ASSERT_PRE_MSG_CS_BEGIN_LE_END(message_iterator,
beginning_raw_value, end_raw_value);
return create_discarded_items_message(message_iterator,
beginning_raw_value, end_raw_value);
return create_discarded_items_message(message_iterator,
uint64_t end_raw_value)
{
BT_ASSERT_PRE_DEV_NO_ERROR();
uint64_t end_raw_value)
{
BT_ASSERT_PRE_DEV_NO_ERROR();
- BT_ASSERT_PRE_BEGIN_LE_END(message_iterator,
+ BT_ASSERT_PRE_MSG_CS_BEGIN_LE_END(message_iterator,
beginning_raw_value, end_raw_value);
return create_discarded_items_message(message_iterator,
beginning_raw_value, end_raw_value);
return create_discarded_items_message(message_iterator,