diff options
author | Stefan F <32997632+stefan301@users.noreply.github.com> | 2021-08-31 00:34:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-30 15:34:42 -0700 |
commit | b20c4d3aada74ea4bd204b03b5045585008294bc (patch) | |
tree | e2c37d1250afd88ef89c2ca00a2fbf96d173e5d8 /tests/monster_extra_generated.h | |
parent | ae145293cc589a4e991eb99656d9ab234d738c16 (diff) | |
download | flatbuffers-b20c4d3aada74ea4bd204b03b5045585008294bc.tar.gz flatbuffers-b20c4d3aada74ea4bd204b03b5045585008294bc.tar.bz2 flatbuffers-b20c4d3aada74ea4bd204b03b5045585008294bc.zip |
[C++] Add GetMutableSizePrefixedRoot and generate GetMutableSizePrefixedXxx functions (#6815)
* flattests_cpp17 doesn't compile with Visual Studio 2017: warning C4100: 'indent': unreferenced formal parameter
stringify_util.h(127): error C2220: warning treated as error - no 'object' file generated
stringify_util.h(127): warning C4100: 'indent': unreferenced formal parameter
stringify_util.h(85): warning C4100: 'indent': unreferenced formal parameter
stringify_util.h(85): warning C4100: 'fbs': unreferenced formal parameter
* [C++] Add GetMutableSizePrefixedRoot() and generate a GetMutableSizePrefixed function
When using the mutable API together with size prefixed buffers these functions should be present.
* clang-format
* Cleanup branch for PR
Revert "flattests_cpp17 doesn't compile with Visual Studio 2017: warning C4100: 'indent': unreferenced formal parameter"
This reverts commit a92055203e3c26b69df4896d6babd7714539307a.
Diffstat (limited to 'tests/monster_extra_generated.h')
-rw-r--r-- | tests/monster_extra_generated.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/monster_extra_generated.h b/tests/monster_extra_generated.h index bf7c86e3..ec1aa702 100644 --- a/tests/monster_extra_generated.h +++ b/tests/monster_extra_generated.h @@ -349,6 +349,10 @@ inline MonsterExtra *GetMutableMonsterExtra(void *buf) { return flatbuffers::GetMutableRoot<MonsterExtra>(buf); } +inline MyGame::MonsterExtra *GetMutableSizePrefixedMonsterExtra(void *buf) { + return flatbuffers::GetMutableSizePrefixedRoot<MyGame::MonsterExtra>(buf); +} + inline const char *MonsterExtraIdentifier() { return "MONE"; } |