Small improvements to the C++ API.

Change-Id: Ib30ffbbd140a8b82fe664129fa4e8c55836267f8
Tested: on Linux.
This commit is contained in:
Wouter van Oortmerssen
2015-06-17 16:56:50 -07:00
parent 576022c64b
commit c967515da5
4 changed files with 16 additions and 5 deletions

View File

@@ -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);