Replace assert() -> BT_ASSERT() and some preconditions with BT_ASSERT_PRE()
[babeltrace.git] / include / babeltrace / graph / notification-stream-internal.h
index df1b3dcb3a565d95fd516450b27a9c0bad7d8f11..5c0f72260c3c50e1ce2d8bfd07c2ec38ad8e3eab 100644 (file)
@@ -30,6 +30,7 @@
 #include <babeltrace/compiler-internal.h>
 #include <babeltrace/ctf-ir/packet.h>
 #include <babeltrace/graph/notification-internal.h>
+#include <babeltrace/assert-internal.h>
 
 struct bt_notification_stream_begin {
        struct bt_notification parent;
@@ -49,7 +50,7 @@ struct bt_stream *bt_notification_stream_begin_borrow_stream(
                container_of(notif,
                        struct bt_notification_stream_begin, parent);
 
-       assert(notif_stream_begin);
+       BT_ASSERT(notif_stream_begin);
        return notif_stream_begin->stream;
 }
 
@@ -61,7 +62,7 @@ struct bt_stream *bt_notification_stream_end_borrow_stream(
                container_of(notif,
                        struct bt_notification_stream_end, parent);
 
-       assert(notif_stream_end);
+       BT_ASSERT(notif_stream_end);
        return notif_stream_end->stream;
 }
 
This page took 0.023819 seconds and 4 git commands to generate.