mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-01 09:51:12 +00:00
Small improvements to the C++ API.
Change-Id: Ib30ffbbd140a8b82fe664129fa4e8c55836267f8 Tested: on Linux.
This commit is contained in:
parent
576022c64b
commit
c967515da5
4 changed files with 16 additions and 5 deletions
|
|
@ -49,7 +49,7 @@ int main(int /*argc*/, const char * /*argv*/[]) {
|
|||
|
||||
assert(monster->hp() == 80);
|
||||
assert(monster->mana() == 150); // default
|
||||
assert(!strcmp(monster->name()->c_str(), "MyMonster"));
|
||||
assert(monster->name()->str() == "MyMonster");
|
||||
|
||||
auto pos = monster->pos();
|
||||
assert(pos);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue