Actions
Bug #298
closedlttng-gen-tp generates non-standard #include guards
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