Project

General

Profile

Actions

Bug #298

closed

lttng-gen-tp generates non-standard #include guards

Added by Sébastien Barthélémy over 12 years ago. Updated almost 12 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Yannick Brosseau
Target version:
Start date:
07/10/2012
Due date:
% Done:

100%

Estimated time:

Description

The #include guard starts with an underscore followed by a capital letter. This is reserved:
http://gcc.gnu.org/onlinedocs/cpp/System_002dspecific-Predefined-Macros.html

$ echo "// coucou" > hello.tp
$ lttng-gen-tp hello.tp
$ head -n 15 hello.h

#undef TRACEPOINT_PROVIDER
#define TRACEPOINT_PROVIDER 

#undef TRACEPOINT_INCLUDE_FILE
#define TRACEPOINT_INCLUDE_FILE ./hello.h

#ifdef __cplusplus
#extern "C"{
#endif /*__cplusplus */

#if !defined(_HELLO_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define _HELLO_H
Actions

Also available in: Atom PDF