Replace assert() -> BT_ASSERT() and some preconditions with BT_ASSERT_PRE()
[babeltrace.git] / include / babeltrace / ctf-ir / stream-class-internal.h
index 24c75848370e8c95dce52f3a77f6c66c69bb5694..fecf8f298fc01e57d2ab049a8bc67b005b9ae3ee 100644 (file)
@@ -34,7 +34,7 @@
 #include <babeltrace/object-internal.h>
 #include <babeltrace/babeltrace-internal.h>
 #include <babeltrace/ctf-ir/trace-internal.h>
-#include <assert.h>
+#include <babeltrace/assert-internal.h>
 #include <glib.h>
 
 struct bt_stream_class {
@@ -115,7 +115,7 @@ static inline
 struct bt_trace *bt_stream_class_borrow_trace(
                struct bt_stream_class *stream_class)
 {
-       assert(stream_class);
+       BT_ASSERT(stream_class);
        return (void *) bt_object_borrow_parent(stream_class);
 }
 
This page took 0.025124 seconds and 4 git commands to generate.