Always evaluate BT_ASSERT(); add BT_ASSERT_DBG() for debug mode only
[babeltrace.git] / src / ctf-writer / stream-class.h
index f39f405e813135588c69313ffd3938f877fca597..8b31c46e5451fdfeaa8c10e171d3797669aa3f5f 100644 (file)
@@ -31,8 +31,8 @@
 #include "common/assert.h"
 #include "common/macros.h"
 #include "common/common.h"
-#include <babeltrace2/ctf-writer/field-types.h>
-#include <babeltrace2/ctf-writer/visitor.h>
+#include <babeltrace2-ctf-writer/field-types.h>
+#include <babeltrace2-ctf-writer/visitor.h>
 #include <inttypes.h>
 
 #include "clock.h"
@@ -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.02316 seconds and 4 git commands to generate.