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
02e73e1a
Commit
02e73e1a
authored
Mar 21, 2019
by
Wouter van Oortmerssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Further fixes to make minireflect compatible with old behavior.
Change-Id: I92c257ec4ab4a0cf4676bd98523b766ce25bf4f6
parent
f93d0f6a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
minireflect.h
include/flatbuffers/minireflect.h
+9
-3
No files found.
include/flatbuffers/minireflect.h
View file @
02e73e1a
...
@@ -360,17 +360,21 @@ struct ToStringVisitor : public IterationVisitor {
...
@@ -360,17 +360,21 @@ struct ToStringVisitor : public IterationVisitor {
void
Unknown
(
const
uint8_t
*
)
{
s
+=
"(?)"
;
}
void
Unknown
(
const
uint8_t
*
)
{
s
+=
"(?)"
;
}
void
StartVector
()
{
void
StartVector
()
{
s
+=
"["
;
s
+=
"["
;
s
+=
d
;
if
(
vector_delimited
)
{
if
(
vector_delimited
)
{
s
+=
d
;
indent_level
++
;
indent_level
++
;
append_indent
();
append_indent
();
}
else
{
s
+=
" "
;
}
}
}
}
void
EndVector
()
{
void
EndVector
()
{
s
+=
d
;
if
(
vector_delimited
)
{
if
(
vector_delimited
)
{
s
+=
d
;
indent_level
--
;
indent_level
--
;
append_indent
();
append_indent
();
}
else
{
s
+=
" "
;
}
}
s
+=
"]"
;
s
+=
"]"
;
}
}
...
@@ -378,9 +382,11 @@ struct ToStringVisitor : public IterationVisitor {
...
@@ -378,9 +382,11 @@ struct ToStringVisitor : public IterationVisitor {
const
TypeTable
*
/*type_table*/
,
const
uint8_t
*
/*val*/
)
{
const
TypeTable
*
/*type_table*/
,
const
uint8_t
*
/*val*/
)
{
if
(
i
)
{
if
(
i
)
{
s
+=
","
;
s
+=
","
;
s
+=
d
;
if
(
vector_delimited
)
{
if
(
vector_delimited
)
{
s
+=
d
;
append_indent
();
append_indent
();
}
else
{
s
+=
" "
;
}
}
}
}
}
}
...
...
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