~lttng/babeltrace/trunk

Viewing all changes in revision 4383.

  • Committer: Philippe Proulx
  • Author(s): Simon Marchi
  • Date: 2023-05-21 12:02:12 UTC
  • Revision ID: git-v1:805e57b014d3763c86568a0b966f4d5093a53e03
lib: de-duplicate "no error" assertion in add port functions

Add BT_ASSERT_PRE_NO_ERROR_FROM_FUNC calls in
bt_component_add_output_port and bt_component_add_input_port, and remove
the equivalent calls in their callers.  This moves the assertion check
next to the other existing assertions.

Change-Id: Ia251510ce2b6ba369cfc1f4afae50e8e46060957
Reviewed-on: https://review.lttng.org/c/babeltrace/+/10036
CI-Build: Simon Marchi <simon.marchi@efficios.com>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: