Always evaluate BT_ASSERT(); add BT_ASSERT_DBG() for debug mode only
[babeltrace.git] / src / lib / graph / message / packet.c
index d8134e824dbb6e1f7ed991b7ce7301dc5a00a400..637156d3c1f6b18cb6553c8cd99466bcb6fa3f61 100644 (file)
@@ -318,7 +318,7 @@ borrow_packet_message_default_clock_snapshot_const(
 {
        struct bt_message_packet *packet_msg = (void *) message;
 
-       BT_ASSERT(message);
+       BT_ASSERT_DBG(message);
        BT_ASSERT_PRE_DEV(
                packet_msg->packet->stream->class->default_clock_class,
                "Message's stream's class has no default clock class: "
@@ -352,7 +352,7 @@ borrow_packet_message_stream_class_default_clock_class(
 {
        struct bt_message_packet *packet_msg = (void *) msg;
 
-       BT_ASSERT(msg);
+       BT_ASSERT_DBG(msg);
        return packet_msg->packet->stream->class->default_clock_class;
 }
 
This page took 0.023535 seconds and 4 git commands to generate.