Skip to content

Commit

Permalink
add docs about returning of RMW_RET_BAD_ALLOC
Browse files Browse the repository at this point in the history
  • Loading branch information
wjwwood authored Jun 12, 2018
1 parent afb72ef commit 0a53658
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rmw/include/rmw/raw_message.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ rmw_raw_message_init(
*
* \param msg pointer to the raw message to be cleaned up
* \return `RMW_RET_OK` if successful, or
* \return `RMW_RET_BAD_ALLOC` if memory allocation failed, or
* \return `RMW_RET_ERROR` if an unexpected error occurs
*/
RMW_PUBLIC
Expand All @@ -80,6 +81,7 @@ rmw_raw_message_fini(rmw_message_raw_t * msg);
* \param msg pointer to the instance of rmw_message_raw_t which is being resized
* \param new_size the new size of the internal buffer
* \return `RMW_RET_OK` if successful, or
* \return `RMW_RET_BAD_ALLOC` if memory allocation failed, or
* \return `RMW_RET_ERROR` if an unexpected error occurs
*/
RMW_PUBLIC
Expand Down

0 comments on commit 0a53658

Please sign in to comment.