Define RMW_CHECK_FOR_NULL_WITH_MSG

Define Documentation

RMW_CHECK_FOR_NULL_WITH_MSG(value, msg, error_statement)

Check a value for null, with an error message and error statement.

If value is NULL, the error statement will be evaluated after setting the error message.

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

  • msg[in] The error message if value is NULL.

  • error_statement[in] The statement to evaluate if value is NULL.