Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
50ef6a62
Commit
50ef6a62
authored
Dec 13, 2017
by
Feng Xiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid two consecutive underscores in macro name.
Fixes
https://github.com/google/protobuf/issues/3268
parent
0a7120ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
cpp_file.cc
src/google/protobuf/compiler/cpp/cpp_file.cc
+3
-3
No files found.
src/google/protobuf/compiler/cpp/cpp_file.cc
View file @
50ef6a62
...
...
@@ -1145,8 +1145,8 @@ void FileGenerator::GenerateTopHeaderGuard(io::Printer* printer,
"// Generated by the protocol buffer compiler. DO NOT EDIT!
\n
"
"// source: $filename$
\n
"
"
\n
"
"#ifndef PROTOBUF_$filename_identifier$_
_
INCLUDED
\n
"
"#define PROTOBUF_$filename_identifier$_
_
INCLUDED
\n
"
"#ifndef PROTOBUF_$filename_identifier$_INCLUDED
\n
"
"#define PROTOBUF_$filename_identifier$_INCLUDED
\n
"
"
\n
"
"#include <string>
\n
"
,
"filename"
,
file_
->
name
(),
"filename_identifier"
,
filename_identifier
);
...
...
@@ -1156,7 +1156,7 @@ void FileGenerator::GenerateTopHeaderGuard(io::Printer* printer,
void
FileGenerator
::
GenerateBottomHeaderGuard
(
io
::
Printer
*
printer
,
const
string
&
filename_identifier
)
{
printer
->
Print
(
"#endif // PROTOBUF_$filename_identifier$_
_
INCLUDED
\n
"
,
"#endif // PROTOBUF_$filename_identifier$_INCLUDED
\n
"
,
"filename_identifier"
,
filename_identifier
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment