In the previous recipes, we explored functions and macros and used positional arguments. In this recipe, we will define a function with named arguments. We will enhance the example from Recipe 1, Code reuse with functions and macros and instead of defining tests using the following:
add_catch_test(short 1.5)
We will be able to call the following:
add_catch_test( NAME short LABELS short cpp_test COST 1.5 )