Replace assert() -> BT_ASSERT() and some preconditions with BT_ASSERT_PRE()
[babeltrace.git] / bindings / python / bt2 / bt2 / native_btnotifiter.i
index 8963ec993c307ab4180eabac23dd519181bb30df..320e2e95c781417af2c80b6789cee4b6ae1ee2d2 100644 (file)
@@ -62,10 +62,10 @@ static PyObject *bt_py3_get_user_component_from_user_notif_iter(
                        priv_notif_iter);
        PyObject *py_comp;
 
-       assert(priv_comp);
+       BT_ASSERT(priv_comp);
        py_comp = bt_private_component_get_user_data(priv_comp);
        bt_put(priv_comp);
-       assert(py_comp);
+       BT_ASSERT(py_comp);
 
        /* Return new reference */
        Py_INCREF(py_comp);
This page took 0.023594 seconds and 4 git commands to generate.