fix function docblock, check for unparsed arguments (#945)
Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
This commit is contained in:
parent
26bc60704c
commit
afbdfc1dec
1 changed files with 7 additions and 3 deletions
|
@ -11,13 +11,13 @@
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
# Register an rclcpp component with the ament
|
||||||
|
# resource index and create an executable.
|
||||||
#
|
#
|
||||||
# usage: rclcpp_components_register_node(
|
# usage: rclcpp_components_register_node(
|
||||||
# <target> PLUGIN <component> EXECUTABLE <node>)
|
# <target> PLUGIN <component> EXECUTABLE <node>)
|
||||||
#
|
#
|
||||||
# Register an rclcpp component with the ament
|
|
||||||
# resource index and create an executable.
|
|
||||||
#
|
|
||||||
# :param target: the shared library target
|
# :param target: the shared library target
|
||||||
# :type target: string
|
# :type target: string
|
||||||
# :param PLUGIN: the plugin name
|
# :param PLUGIN: the plugin name
|
||||||
|
@ -27,6 +27,10 @@
|
||||||
#
|
#
|
||||||
macro(rclcpp_components_register_node target)
|
macro(rclcpp_components_register_node target)
|
||||||
cmake_parse_arguments(ARGS "" "PLUGIN;EXECUTABLE" "" ${ARGN})
|
cmake_parse_arguments(ARGS "" "PLUGIN;EXECUTABLE" "" ${ARGN})
|
||||||
|
if(ARGS_UNPARSED_ARGUMENTS)
|
||||||
|
message(FATAL_ERROR "rclcpp_components_register_node() called with unused "
|
||||||
|
"arguments: ${ARGS_UNPARSED_ARGUMENTS}")
|
||||||
|
endif()
|
||||||
set(component ${ARGS_PLUGIN})
|
set(component ${ARGS_PLUGIN})
|
||||||
set(node ${ARGS_EXECUTABLE})
|
set(node ${ARGS_EXECUTABLE})
|
||||||
_rclcpp_components_register_package_hook()
|
_rclcpp_components_register_package_hook()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue