Define RCUTILS_CAN_SET_MSG_AND_RETURN_WITH_ERROR_OF

Define Documentation

RCUTILS_CAN_SET_MSG_AND_RETURN_WITH_ERROR_OF(error_return_value)

Indicate that the function intends to set an error message and return an error value.

Indicating macro similar to RCUTILS_CAN_RETURN_WITH_ERROR_OF, that also sets an error message.

For now, this macro simply relies on RCUTILS_CAN_FAIL_WITH to set a generic error message and return the given error_return_value if fault injection is enabled.

Parameters:
  • error_return_value – the value returned as a result of a given error.