Define RMW_CHECK_ARGUMENT_FOR_NULL

Define Documentation

RMW_CHECK_ARGUMENT_FOR_NULL(argument, error_return_type)

Check an argument for a null value.

If the argument’s value is NULL, set the error message saying so and return the error_return_type.

Parameters:
  • argument[in] The argument to test.

  • error_return_type[in] The type to return if the argument is NULL.