Replace assert() -> BT_ASSERT() and some preconditions with BT_ASSERT_PRE()
[babeltrace.git] / include / babeltrace / graph / notification-packet-internal.h
index 7164d55baf07349f09df45143118387005f8d3eb..4fc401662545cbefe9d4d102b42716c0d7a8070b 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_packet_begin {
        struct bt_notification parent;
@@ -49,7 +50,7 @@ struct bt_packet *bt_notification_packet_begin_borrow_packet(
                container_of(notif,
                        struct bt_notification_packet_begin, parent);
 
-       assert(notif_packet_begin);
+       BT_ASSERT(notif_packet_begin);
        return notif_packet_begin->packet;
 }
 
@@ -61,7 +62,7 @@ struct bt_packet *bt_notification_packet_end_borrow_packet(
                container_of(notif,
                        struct bt_notification_packet_end, parent);
 
-       assert(notif_packet_end);
+       BT_ASSERT(notif_packet_end);
        return notif_packet_end->packet;
 }
 
This page took 0.022891 seconds and 4 git commands to generate.