#include "lib/logging.h"
#include "common/assert.h"
-#include "lib/assert-pre.h"
+#include "lib/assert-cond.h"
#include "compat/compiler.h"
#include <babeltrace2/value.h>
#include <babeltrace2/graph/self-component.h>
struct bt_port *port = NULL;
BT_ASSERT_PRE_NO_ERROR();
+ BT_ASSERT_PRE_OUTPUT_PORT_NAME_UNIQUE(comp, name);
/* bt_component_add_output_port() logs details and errors */
status = bt_component_add_output_port(comp, name, user_data, &port);
struct bt_component *comp = (void *) self_comp;
BT_ASSERT_PRE_NO_ERROR();
+ BT_ASSERT_PRE_INPUT_PORT_NAME_UNIQUE(comp, name);
/* bt_component_add_input_port() logs details/errors */
status = bt_component_add_input_port(comp, name, user_data, &port);