Fixed incorrect verifier code for nested tables.
authorWouter van Oortmerssen <wvo@google.com>
Wed, 9 Jul 2014 18:44:26 +0000 (11:44 -0700)
committerWouter van Oortmerssen <wvo@google.com>
Thu, 10 Jul 2014 00:13:03 +0000 (17:13 -0700)
commit75349ae8c39d01e7e2b5779a18ace750c08e2fd9
tree53712f04ba0c455f493423f205f943a0769669fc
parentb3ee52c0a7f32a642787b9373cef6e7467880dc1
Fixed incorrect verifier code for nested tables.

It was outputting the type instead of the field name, and didn't deal
with NULL fields. Added test case.

Also fixed token enums having the wrong value, resulting in
unreadable error messages.

Change-Id: Icd9b4d22f417bfad5824c0f58e067ce3f2e2dc6f
Tested: on Windows and Linux.
include/flatbuffers/flatbuffers.h
src/idl_gen_cpp.cpp
src/idl_parser.cpp
tests/MyGame/Example/Monster.java
tests/monster_test.fbs
tests/monster_test_generated.h
tests/monsterdata_test_wire.bin
tests/test.cpp