forked from BigfootDev/flatbuffers
Small improvements to the C++ API.
Change-Id: Ib30ffbbd140a8b82fe664129fa4e8c55836267f8 Tested: on Linux.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user