Skip to content

Commit

Permalink
MODE_NOLOG: Added macro parameter type check for ROS stream logging f…
Browse files Browse the repository at this point in the history
…unctions
  • Loading branch information
4c3y committed Sep 8, 2023
1 parent b0e60e7 commit aa3c021
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/log++.h
Original file line number Diff line number Diff line change
Expand Up @@ -474,11 +474,11 @@ LPP_INTL::InternalPolicyLog(LPP_GET_KEY(), n, LPP_INTL::BaseSeverity::DEBUG, LPP
#define ROS_ERROR(...) LOG_2(E, LPP_INTL::emptyString(__VA_ARGS__))
#define ROS_FATAL(...) LOG_2(F, LPP_INTL::emptyString(__VA_ARGS__))

#define ROS_DEBUG_STREAM(x) (void) x
#define ROS_INFO_STREAM(x) (void) x
#define ROS_WARN_STREAM(x) (void) x
#define ROS_ERROR_STREAM(x) (void) x
#define ROS_FATAL_STREAM(x) (void) x
#define ROS_DEBUG_STREAM(x) LPP_INTL::emptyString(x)
#define ROS_INFO_STREAM(x) LPP_INTL::emptyString(x)
#define ROS_WARN_STREAM(x) LPP_INTL::emptyString(x)
#define ROS_ERROR_STREAM(x) LPP_INTL::emptyString(x)
#define ROS_FATAL_STREAM(x) LPP_INTL::emptyString(x)

#define ROS_DEBUG_ONCE(...) LOG_2(D, LPP_INTL::emptyString(__VA_ARGS__))
#define ROS_INFO_ONCE(...) LOG_2(I, LPP_INTL::emptyString(__VA_ARGS__))
Expand Down

0 comments on commit aa3c021

Please sign in to comment.