{
struct bt_query_executor *query_exec;
+ BT_ASSERT_PRE_NO_ERROR();
BT_ASSERT_PRE_NON_NULL(comp_cls, "Component class");
BT_ASSERT_PRE_NON_NULL(object, "Object");
BT_LIB_LOGD("Creating query executor: "
const bt_component_class *comp_cls, const char *object,
const bt_value *params)
{
+ BT_ASSERT_PRE_NO_ERROR();
return bt_query_executor_create_with_method_data(comp_cls,
object, params, NULL);
}
enum bt_component_class_query_method_status query_status;
method_t method = NULL;
+ BT_ASSERT_PRE_NO_ERROR();
BT_ASSERT_PRE_NON_NULL(query_exec, "Query executor");
BT_ASSERT_PRE_NON_NULL(user_result, "Result (output)");
break;
}
default:
- abort();
+ bt_common_abort();
}
if (!method) {
bt_common_func_status_string(query_status), *user_result);
BT_ASSERT_POST(query_status != BT_FUNC_STATUS_OK || *user_result,
"User method returned `BT_FUNC_STATUS_OK` without a result.");
+ BT_ASSERT_POST_NO_ERROR_IF_NO_ERROR_STATUS(query_status);
status = (int) query_status;
if (status < 0) {
struct bt_query_executor *query_exec,
const struct bt_interrupter *intr)
{
+ BT_ASSERT_PRE_NO_ERROR();
BT_ASSERT_PRE_NON_NULL(query_exec, "Query executor");
BT_ASSERT_PRE_NON_NULL(intr, "Interrupter");
g_ptr_array_add(query_exec->interrupters, (void *) intr);