Skip to content

Commit

Permalink
document undefined behavior in logging functions
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodall <william@osrfoundation.org>
  • Loading branch information
wjwwood committed Nov 11, 2021
1 parent 3a07bef commit 26059dd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions rcl/include/rcl/logging_rosout.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,10 @@ rcl_logging_rosout_fini_publisher_for_node(
* message out via that publisher. If there is no publisher directly correlated
* with the logger then nothing will be done.
*
* This function is meant to be registered with the logging functions for rcutils
* This function is meant to be registered with the logging functions for
* rcutils, and shouldn't be used outside of that context.
* Additionally, arguments like args should be non-null and properly initialized
* otherwise it is undefined behavior.
*
* <hr>
* Attribute | Adherence
Expand All @@ -176,7 +179,8 @@ rcl_logging_rosout_fini_publisher_for_node(
* \param[in] args argument for the string format
*/
RCL_PUBLIC
void rcl_logging_rosout_output_handler(
void
rcl_logging_rosout_output_handler(
const rcutils_log_location_t * location,
int severity,
const char * name,
Expand Down

0 comments on commit 26059dd

Please sign in to comment.