X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fnative_bt_component_class.i.h;h=f830afa3465cf5449309ba3e1b1d18de07b460be;hb=98b15851a941e7342b8bb19e265cdc3a40fabfb8;hp=a80d059d052b7964d16d4f48ea4933053ca1d57a;hpb=4b3b8e4ad436df173c9ecdf8279ccaa3a6d41201;p=babeltrace.git diff --git a/src/bindings/python/bt2/bt2/native_bt_component_class.i.h b/src/bindings/python/bt2/bt2/native_bt_component_class.i.h index a80d059d..f830afa3 100644 --- a/src/bindings/python/bt2/bt2/native_bt_component_class.i.h +++ b/src/bindings/python/bt2/bt2/native_bt_component_class.i.h @@ -1208,8 +1208,7 @@ component_class_message_iterator_next( PyObject *py_message_iter = bt_self_message_iterator_get_data(message_iterator); PyObject *py_method_result = NULL; - BT_ASSERT(py_message_iter); - + BT_ASSERT_DBG(py_message_iter); py_method_result = PyObject_CallMethod(py_message_iter, "_bt_next_from_native", NULL); if (!py_method_result) { @@ -1226,7 +1225,7 @@ component_class_message_iterator_next( *count = 1; /* Overflow errors should never happen. */ - BT_ASSERT(!PyErr_Occurred()); + BT_ASSERT_DBG(!PyErr_Occurred()); status = BT_COMPONENT_CLASS_MESSAGE_ITERATOR_NEXT_METHOD_STATUS_OK; @@ -1244,7 +1243,7 @@ component_class_sink_consume(bt_self_component_sink *self_component_sink) PyObject *py_method_result = NULL; bt_component_class_sink_consume_method_status status; - BT_ASSERT(py_comp); + BT_ASSERT_DBG(py_comp); py_method_result = PyObject_CallMethod(py_comp, "_user_consume", NULL);