Replace assert() -> BT_ASSERT() and some preconditions with BT_ASSERT_PRE()
[babeltrace.git] / include / babeltrace / ctf-ir / stream-internal.h
index 3901a9ae4536104138a498683ba2bed2385b35aa..e6b8ea0ba2490493a28189ba5782519a0d2a19a8 100644 (file)
@@ -34,6 +34,7 @@
 #include <babeltrace/ctf-writer/event-types.h>
 #include <babeltrace/ctf-writer/serialize-internal.h>
 #include <babeltrace/babeltrace-internal.h>
+#include <babeltrace/assert-internal.h>
 #include <glib.h>
 
 struct bt_port;
@@ -112,7 +113,7 @@ static inline
 struct bt_stream_class *bt_stream_borrow_stream_class(
                struct bt_stream *stream)
 {
-       assert(stream);
+       BT_ASSERT(stream);
        return stream->stream_class;
 }
 
This page took 0.024961 seconds and 4 git commands to generate.