Replace assert() -> BT_ASSERT() and some preconditions with BT_ASSERT_PRE()
[babeltrace.git] / include / babeltrace / graph / notification-discarded-elements-internal.h
index 131050d140be7be3461b0a14e61bb815eae56109..3dbc6368530173831a60e740a69b9d4e3518343e 100644 (file)
@@ -25,6 +25,7 @@
 
 #include <glib.h>
 #include <stdint.h>
+#include <babeltrace/assert-internal.h>
 #include <babeltrace/compiler-internal.h>
 #include <babeltrace/graph/notification.h>
 #include <babeltrace/graph/notification-internal.h>
@@ -76,7 +77,7 @@ struct bt_stream *bt_notification_discarded_elements_borrow_stream(
 {
        struct bt_notification_discarded_elements *discarded_elems_notif;
 
-       assert(notification);
+       BT_ASSERT(notification);
        discarded_elems_notif = container_of(notification,
                        struct bt_notification_discarded_elements, parent);
        return discarded_elems_notif->stream;
This page took 0.023443 seconds and 4 git commands to generate.