Always evaluate BT_ASSERT(); add BT_ASSERT_DBG() for debug mode only
[babeltrace.git] / src / ctf-writer / stream-class.h
index ca5a30750a16b8a4366ace41a4b33948c3d8f596..8b31c46e5451fdfeaa8c10e171d3797669aa3f5f 100644 (file)
@@ -155,7 +155,7 @@ static inline
 struct bt_ctf_trace_common *bt_ctf_stream_class_common_borrow_trace(
                struct bt_ctf_stream_class_common *stream_class)
 {
-       BT_ASSERT(stream_class);
+       BT_ASSERT_DBG(stream_class);
        return (void *) bt_ctf_object_borrow_parent(&stream_class->base);
 }
 
@@ -205,7 +205,7 @@ static inline
 void _bt_ctf_stream_class_common_set_id(
                struct bt_ctf_stream_class_common *stream_class, int64_t id)
 {
-       BT_ASSERT(stream_class);
+       BT_ASSERT_DBG(stream_class);
        stream_class->id = id;
        stream_class->id_set = 1;
        BT_LOGT("Set stream class's ID (internal): "
This page took 0.024034 seconds and 4 git commands to generate.