Replace assert() -> BT_ASSERT() and some preconditions with BT_ASSERT_PRE()
[babeltrace.git] / bindings / python / bt2 / bt2 / native_btport.i
index b14550dc6502febaa5cc8ae301101af7a42201d4..fef78264e8d5bb2cc768a394525ff91b03fe80ef 100644 (file)
@@ -69,8 +69,8 @@ static struct bt_notification_iterator *bt_py3_create_output_port_notif_iter(
        enum bt_notification_type *notification_types;
 
        output_port = (void *) port_addr;
-       assert(!PyErr_Occurred());
-       assert(output_port);
+       BT_ASSERT(!PyErr_Occurred());
+       BT_ASSERT(output_port);
 
        notification_types = bt_py3_notif_types_from_py_list(py_notif_types);
        notif_iter = bt_output_port_notification_iterator_create(output_port,
This page took 0.024856 seconds and 4 git commands to generate.