Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ChocolateFactory/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Folders #
###########
win/
build/
32 changes: 32 additions & 0 deletions ChocolateFactory/ExampleCode/cmake/ConnextDdsArgumentChecks.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# (c) 2017 Copyright, Real-Time Innovations, Inc. All rights reserved.
# No duplications, whole or partial, manual or electronic, may be made
# without express written permission. Any such copies, or revisions thereof,
# must display this notice unaltered.
# This code contains trade secrets of Real-Time Innovations, Inc.

#[[.rst:
.. _connextdds_argument_checks:

ConnextDdsArgumentChecks
------------------------

Function helpers to check function arguments

``connextdds_check_required_arguments``
Checks that all of the arguments are present and defined

#]]

function(connextdds_check_required_arguments)
foreach(arg ${ARGN})
if(NOT ${arg})
message(FATAL_ERROR "Argument ${arg} is missing")
endif()
endforeach()
endfunction()

macro(connextdds_check_no_extra_arguments)
if(ARGN)
message(FATAL_ERROR "Function has more arguments than expected")
endif()
endmacro()
Loading