aboutsummaryrefslogtreecommitdiff
path: root/include/flatbuffers/idl.h
diff options
context:
space:
mode:
authorWouter van Oortmerssen <aardappel@gmail.com>2020-03-05 17:20:51 -0800
committerWouter van Oortmerssen <aardappel@gmail.com>2020-03-05 17:21:47 -0800
commitf73d205bc7536991e620d3027a711e713a789967 (patch)
tree5632745373f4454d2f2326075cba14d7b59236ec /include/flatbuffers/idl.h
parent7c37abe92d64470299089e39b7051f45813c8efb (diff)
downloadflatbuffers-f73d205bc7536991e620d3027a711e713a789967.tar.gz
Removed assert that wasn't backwards compatible.
Change-Id: I8e74d6fddf91fe955fffc572af9d671160325731
Diffstat (limited to 'include/flatbuffers/idl.h')
-rw-r--r--include/flatbuffers/idl.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/flatbuffers/idl.h b/include/flatbuffers/idl.h
index e04b55e1..12b2b142 100644
--- a/include/flatbuffers/idl.h
+++ b/include/flatbuffers/idl.h
@@ -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).
// 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(); }
const std::vector<EnumVal *> &Vals() const {
- FLATBUFFERS_ASSERT(false == vals.vec.empty());
return vals.vec;
}