Fix coding style
This commit is contained in:
parent
ccc06079e8
commit
5c4b84520e
1 changed files with 16 additions and 11 deletions
|
@ -5,7 +5,8 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
bool ros_trace_compile_status() {
|
bool ros_trace_compile_status()
|
||||||
|
{
|
||||||
#ifdef WITH_LTTNG
|
#ifdef WITH_LTTNG
|
||||||
return true;
|
return true;
|
||||||
#else
|
#else
|
||||||
|
@ -13,25 +14,29 @@ bool ros_trace_compile_status() {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void ros_trace_rcl_init() {
|
void ros_trace_rcl_init()
|
||||||
|
{
|
||||||
#ifdef WITH_LTTNG
|
#ifdef WITH_LTTNG
|
||||||
tracepoint(ros2, rcl_init);
|
tracepoint(ros2, rcl_init);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void ros_trace_rcl_node_init(const char * node_name, const char * namespace) {
|
void ros_trace_rcl_node_init(const char * node_name, const char * namespace)
|
||||||
|
{
|
||||||
#ifdef WITH_LTTNG
|
#ifdef WITH_LTTNG
|
||||||
tracepoint(ros2, rcl_node_init, node_name, namespace);
|
tracepoint(ros2, rcl_node_init, node_name, namespace);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void ros_trace_rcl_publisher_init(const char * node_name, const char * namespace) {
|
void ros_trace_rcl_publisher_init(const char * node_name, const char * namespace)
|
||||||
|
{
|
||||||
#ifdef WITH_LTTNG
|
#ifdef WITH_LTTNG
|
||||||
tracepoint(ros2, rcl_publisher_init, node_name, namespace);
|
tracepoint(ros2, rcl_publisher_init, node_name, namespace);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void ros_trace_rcl_subscription_init(const char * node_name, const char * topic_name) {
|
void ros_trace_rcl_subscription_init(const char * node_name, const char * topic_name)
|
||||||
|
{
|
||||||
#ifdef WITH_LTTNG
|
#ifdef WITH_LTTNG
|
||||||
tracepoint(ros2, rcl_subscription_init, node_name, topic_name);
|
tracepoint(ros2, rcl_subscription_init, node_name, topic_name);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue