Add workaround for cpplint

This commit is contained in:
Christophe Bedard 2019-06-18 11:13:49 +02:00
parent f4d20163bd
commit 8f7d5e99eb

View file

@ -12,14 +12,19 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// Provide fake header guard for cpplint
#undef TRACETOOLS__TP_CALL_H_
#ifndef TRACETOOLS__TP_CALL_H_
#define TRACETOOLS__TP_CALL_H_
#undef TRACEPOINT_PROVIDER #undef TRACEPOINT_PROVIDER
#define TRACEPOINT_PROVIDER ros2 #define TRACEPOINT_PROVIDER ros2
#undef TRACEPOINT_INCLUDE #undef TRACEPOINT_INCLUDE
#define TRACEPOINT_INCLUDE "tracetools/tp_call.h" #define TRACEPOINT_INCLUDE "tracetools/tp_call.h"
#if !defined(TRACETOOLS__TP_CALL_H_) || defined(TRACEPOINT_HEADER_MULTI_READ) #if !defined(_TRACETOOLS__TP_CALL_H_) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define TRACETOOLS__TP_CALL_H_ #define _TRACETOOLS__TP_CALL_H_
#include <lttng/tracepoint.h> #include <lttng/tracepoint.h>
@ -216,6 +221,8 @@ TRACEPOINT_EVENT(
) )
) )
#endif // TRACETOOLS__TP_CALL_H_ #endif // _TRACETOOLS__TP_CALL_H_
#include <lttng/tracepoint-event.h> #include <lttng/tracepoint-event.h>
#endif // TRACETOOLS__TP_CALL_H_