Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
flatbuffers
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
flatbuffers
Commits
ffbc9352
Commit
ffbc9352
authored
Jul 09, 2016
by
Raman
Committed by
GitHub
Jul 09, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update flatc.cpp
parent
d9d47a53
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
flatc.cpp
src/flatc.cpp
+3
-3
No files found.
src/flatc.cpp
View file @
ffbc9352
...
...
@@ -122,7 +122,7 @@ static void Error(const std::string &err, bool usage, bool show_exe_name) {
" --gen-mutable Generate accessors that can mutate buffers in-place.
\n
"
" --gen-onefile Generate single output file for C#.
\n
"
" --gen-name-strings Generate type name functions for C++.
\n
"
" --escape-proto-id
entifiers
Disable appending '_' in namespaces names.
\n
"
" --escape-proto-id
s
Disable appending '_' in namespaces names.
\n
"
" --raw-binary Allow binaries without file_indentifier to be read.
\n
"
" This may crash flatc given a mismatched schema.
\n
"
" --proto Input is a .proto, translate to .fbs.
\n
"
...
...
@@ -195,7 +195,7 @@ int main(int argc, const char *argv[]) {
binary_files_from
=
filenames
.
size
();
}
else
if
(
arg
==
"--proto"
)
{
opts
.
proto_mode
=
true
;
}
else
if
(
arg
==
"--escape-proto-id
entifier
s"
)
{
}
else
if
(
arg
==
"--escape-proto-ids"
)
{
opts
.
escape_proto_identifiers
=
true
;
}
else
if
(
arg
==
"--schema"
)
{
schema_binary
=
true
;
...
...
@@ -317,7 +317,7 @@ int main(int argc, const char *argv[]) {
}
}
if
(
opts
.
proto_mode
)
GenerateFBS
(
*
parser
,
output_path
,
filebase
,
opts
.
escape_proto_identifiers
);
if
(
opts
.
proto_mode
)
GenerateFBS
(
*
parser
,
output_path
,
filebase
);
// We do not want to generate code for the definitions in this file
// in any files coming up next.
...
...
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