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
b97b342f
Commit
b97b342f
authored
Aug 20, 2019
by
Wouter van Oortmerssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed missing generated code.
Change-Id: Iaa0633167c2a4d4543fc4de2af58112d60d5d1e6
parent
c1058a90
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
2 deletions
+44
-2
kotlin_sample.sh
samples/kotlin_sample.sh
+1
-1
arrays_test_generated.h
tests/arrays_test_generated.h
+42
-0
generate_code.sh
tests/generate_code.sh
+1
-1
No files found.
samples/kotlin_sample.sh
View file @
b97b342f
...
...
@@ -56,5 +56,5 @@ echo Running test
kotlin
-cp
${
sampledir
}
/kotlin/kotlin_sample.jar SampleBinary
# Cleanup temporary files.
#
rm -rf MyGame/
rm
-rf
MyGame/
# rm -rf ${sampledir}/kotlin
tests/arrays_test_generated.h
View file @
b97b342f
...
...
@@ -16,6 +16,13 @@ struct ArrayStruct;
struct
ArrayTable
;
struct
ArrayTableT
;
bool
operator
==
(
const
NestedStruct
&
lhs
,
const
NestedStruct
&
rhs
);
bool
operator
!=
(
const
NestedStruct
&
lhs
,
const
NestedStruct
&
rhs
);
bool
operator
==
(
const
ArrayStruct
&
lhs
,
const
ArrayStruct
&
rhs
);
bool
operator
!=
(
const
ArrayStruct
&
lhs
,
const
ArrayStruct
&
rhs
);
bool
operator
==
(
const
ArrayTableT
&
lhs
,
const
ArrayTableT
&
rhs
);
bool
operator
!=
(
const
ArrayTableT
&
lhs
,
const
ArrayTableT
&
rhs
);
inline
const
flatbuffers
::
TypeTable
*
NestedStructTypeTable
();
inline
const
flatbuffers
::
TypeTable
*
ArrayStructTypeTable
();
...
...
@@ -96,6 +103,18 @@ FLATBUFFERS_MANUALLY_ALIGNED_STRUCT(4) NestedStruct FLATBUFFERS_FINAL_CLASS {
};
FLATBUFFERS_STRUCT_END
(
NestedStruct
,
12
);
inline
bool
operator
==
(
const
NestedStruct
&
lhs
,
const
NestedStruct
&
rhs
)
{
return
(
lhs
.
a
()
==
rhs
.
a
())
&&
(
lhs
.
b
()
==
rhs
.
b
())
&&
(
lhs
.
c
()
==
rhs
.
c
());
}
inline
bool
operator
!=
(
const
NestedStruct
&
lhs
,
const
NestedStruct
&
rhs
)
{
return
!
(
lhs
==
rhs
);
}
FLATBUFFERS_MANUALLY_ALIGNED_STRUCT
(
4
)
ArrayStruct
FLATBUFFERS_FINAL_CLASS
{
private
:
float
a_
;
...
...
@@ -147,6 +166,19 @@ FLATBUFFERS_MANUALLY_ALIGNED_STRUCT(4) ArrayStruct FLATBUFFERS_FINAL_CLASS {
};
FLATBUFFERS_STRUCT_END
(
ArrayStruct
,
92
);
inline
bool
operator
==
(
const
ArrayStruct
&
lhs
,
const
ArrayStruct
&
rhs
)
{
return
(
lhs
.
a
()
==
rhs
.
a
())
&&
(
lhs
.
b
()
==
rhs
.
b
())
&&
(
lhs
.
c
()
==
rhs
.
c
())
&&
(
lhs
.
d
()
==
rhs
.
d
());
}
inline
bool
operator
!=
(
const
ArrayStruct
&
lhs
,
const
ArrayStruct
&
rhs
)
{
return
!
(
lhs
==
rhs
);
}
struct
ArrayTableT
:
public
flatbuffers
::
NativeTable
{
typedef
ArrayTable
TableType
;
flatbuffers
::
unique_ptr
<
MyGame
::
Example
::
ArrayStruct
>
a
;
...
...
@@ -154,6 +186,16 @@ struct ArrayTableT : public flatbuffers::NativeTable {
}
};
inline
bool
operator
==
(
const
ArrayTableT
&
lhs
,
const
ArrayTableT
&
rhs
)
{
return
(
lhs
.
a
==
rhs
.
a
);
}
inline
bool
operator
!=
(
const
ArrayTableT
&
lhs
,
const
ArrayTableT
&
rhs
)
{
return
!
(
lhs
==
rhs
);
}
struct
ArrayTable
FLATBUFFERS_FINAL_CLASS
:
private
flatbuffers
::
Table
{
typedef
ArrayTableT
NativeTableType
;
static
const
flatbuffers
::
TypeTable
*
MiniReflectTypeTable
()
{
...
...
tests/generate_code.sh
View file @
b97b342f
...
...
@@ -24,7 +24,7 @@ set -e
../flatc
--cpp
--java
--kotlin
--csharp
--python
--gen-mutable
--reflect-names
--gen-object-api
--gen-compare
--no-includes
monster_extra.fbs monsterdata_extra.json
../flatc
--cpp
--java
--csharp
--python
--gen-mutable
--reflect-names
--gen-object-api
--gen-compare
--no-includes
--scoped-enums
--jsonschema
--cpp-ptr-type
flatbuffers::unique_ptr arrays_test.fbs
cd
../samples
../flatc
--cpp
--
kotlin
--
lobster
--gen-mutable
--reflect-names
--gen-object-api
--gen-compare
--cpp-ptr-type
flatbuffers::unique_ptr monster.fbs
../flatc
--cpp
--lobster
--gen-mutable
--reflect-names
--gen-object-api
--gen-compare
--cpp-ptr-type
flatbuffers::unique_ptr monster.fbs
../flatc
-b
--schema
--bfbs-comments
--bfbs-builtins
monster.fbs
cd
../reflection
./generate_code.sh
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