lib: de-duplicate "no error" assertion in add port functions
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 17 May 2023 19:29:38 +0000 (15:29 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Sun, 21 May 2023 12:02:12 +0000 (08:02 -0400)
commit805e57b014d3763c86568a0b966f4d5093a53e03
tree2412ed963b3721fb7635408512b406c6e23a4a20
parent643012d55c789824e01f7d2ad5db8063d7c7fae3
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>
src/lib/graph/component-filter.c
src/lib/graph/component-sink.c
src/lib/graph/component-source.c
src/lib/graph/component.c
This page took 0.024399 seconds and 4 git commands to generate.