inject_rosconsole.h
Go to the documentation of this file.
1 
10 #pragma push_macro("ROSCONSOLE_AUTOINIT")
11 #pragma push_macro("ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER")
12 #pragma push_macro("ROSCONSOLE_PRINT_STREAM_AT_LOCATION_WITH_FILTER")
13 #pragma push_macro("ROSCONSOLE_DEFINE_LOCATION")
14 #pragma push_macro("ROS_LOG_THROTTLE")
15 #pragma push_macro("ROS_LOG_STREAM_THROTTLE")
16 #pragma push_macro("ROS_LOG_DELAYED_THROTTLE")
17 #pragma push_macro("ROS_LOG_STREAM_DELAYED_THROTTLE")
18 
19 #undef ROSCONSOLE_AUTOINIT
20 #undef ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER
21 #undef ROSCONSOLE_PRINT_STREAM_AT_LOCATION_WITH_FILTER
22 #undef ROSCONSOLE_DEFINE_LOCATION
23 #undef ROS_LOG_THROTTLE
24 #undef ROS_LOG_STREAM_THROTTLE
25 #undef ROS_LOG_DELAYED_THROTTLE
26 #undef ROS_LOG_STREAM_DELAYED_THROTTLE
27 
28 #define ROSCONSOLE_AUTOINIT(...) CRASCONSOLE_AUTOINIT(getCrasLogger(), __VA_ARGS__)
29 #define ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(...) CRASCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(getCrasLogger(), __VA_ARGS__) /* NOLINT */
30 #define ROSCONSOLE_PRINT_STREAM_AT_LOCATION_WITH_FILTER(...) CRASCONSOLE_PRINT_STREAM_AT_LOCATION_WITH_FILTER(getCrasLogger(), __VA_ARGS__) /* NOLINT */
31 #define ROSCONSOLE_DEFINE_LOCATION(...) CRASCONSOLE_DEFINE_LOCATION(getCrasLogger(), __VA_ARGS__)
32 #define ROS_LOG_THROTTLE(...) CRAS_LOG_THROTTLE(getCrasLogger(), __VA_ARGS__)
33 #define ROS_LOG_STREAM_THROTTLE(...) CRAS_LOG_STREAM_THROTTLE(getCrasLogger(), __VA_ARGS__)
34 #define ROS_LOG_DELAYED_THROTTLE(...) CRAS_LOG_DELAYED_THROTTLE(getCrasLogger(), __VA_ARGS__)
35 #define ROS_LOG_STREAM_DELAYED_THROTTLE(...) CRAS_LOG_STREAM_DELAYED_THROTTLE(getCrasLogger(), __VA_ARGS__)
36 
37 #ifndef CRAS_RESTORE_ROS_LOG
38 
42 #define CRAS_RESTORE_ROS_LOG \
43  _Pragma("pop_macro(\"ROSCONSOLE_AUTOINIT\")") \
44  _Pragma("pop_macro(\"ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER\")") \
45  _Pragma("pop_macro(\"ROSCONSOLE_PRINT_STREAM_AT_LOCATION_WITH_FILTER\")") \
46  _Pragma("pop_macro(\"ROSCONSOLE_DEFINE_LOCATION\")") \
47  _Pragma("pop_macro(\"ROS_LOG_THROTTLE\")") \
48  _Pragma("pop_macro(\"ROS_LOG_STREAM_THROTTLE\")") \
49  _Pragma("pop_macro(\"ROS_LOG_DELAYED_THROTTLE\")") \
50  _Pragma("pop_macro(\"ROS_LOG_STREAM_DELAYED_THROTTLE\")")
51 #endif


cras_cpp_common
Author(s): Martin Pecka
autogenerated on Tue Nov 26 2024 03:49:04