mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-22 00:48:28 +00:00
Added min/max values for enums/unions.
Bug: 21642898 Change-Id: Ifaf0b3c4274fe30ef29507ba1c1216d700efe85b Tested: on Linux.
This commit is contained in:
@@ -36,7 +36,7 @@ class TableInFirstNS extends Table
|
||||
{
|
||||
$obj = new TableInNestedNS();
|
||||
$o = $this->__offset(4);
|
||||
return $o != 0 ? $obj->init($o + $this->bb_pos, $this->bb) : 0;
|
||||
return $o != 0 ? $obj->init($this->__indirect($o + $this->bb_pos), $this->bb) : 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -15,7 +15,9 @@ struct StructInNestedNS;
|
||||
enum EnumInNestedNS {
|
||||
EnumInNestedNS_A = 0,
|
||||
EnumInNestedNS_B = 1,
|
||||
EnumInNestedNS_C = 2
|
||||
EnumInNestedNS_C = 2,
|
||||
EnumInNestedNS_MIN_VAL = EnumInNestedNS_A,
|
||||
EnumInNestedNS_MAX_VAL = EnumInNestedNS_C
|
||||
};
|
||||
|
||||
inline const char **EnumNamesEnumInNestedNS() {
|
||||
|
||||
Reference in New Issue
Block a user