mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-02 13:58:18 +00:00
Removed assert that wasn't backwards compatible.
Change-Id: I8e74d6fddf91fe955fffc572af9d671160325731
This commit is contained in:
@@ -91,7 +91,7 @@ switch (type) {
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// If not all FLATBUFFERS_GEN_() arguments are necessary for implementation
|
// If not all FLATBUFFERS_GEN_() arguments are necessary for implementation
|
||||||
// of FLATBUFFERS_TD, you can use a variadic macro (with __VA_ARGS__ if needed).
|
// of FLATBUFFERS_TD, you can use a variadic macro (with __VA_ARGS__ if needed).
|
||||||
// In the above example, only CTYPE is used to generate the code, it can be rewritten:
|
// In the above example, only CTYPE is used to generate the code, it can be rewritten:
|
||||||
|
|
||||||
@@ -411,7 +411,6 @@ struct EnumDef : public Definition {
|
|||||||
size_t size() const { return vals.vec.size(); }
|
size_t size() const { return vals.vec.size(); }
|
||||||
|
|
||||||
const std::vector<EnumVal *> &Vals() const {
|
const std::vector<EnumVal *> &Vals() const {
|
||||||
FLATBUFFERS_ASSERT(false == vals.vec.empty());
|
|
||||||
return vals.vec;
|
return vals.vec;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user