diff options
author | thegeorg <thegeorg@yandex-team.com> | 2024-03-16 14:05:11 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.com> | 2024-03-16 14:20:39 +0300 |
commit | 4e3ee6b12c3dacb5d556e9afad35dcd6efe58fa1 (patch) | |
tree | 7415c5c5bea98154299213abb536d01bcee6c8af /contrib/libs/flatbuffers/src/idl_gen_csharp.cpp | |
parent | d83e7ea91cbc5e5d4ea49195eeab84c364dba4bb (diff) | |
download | ydb-4e3ee6b12c3dacb5d556e9afad35dcd6efe58fa1.tar.gz |
Update contrib/libs/flatbuffers to 24.3.7
ba53b58280bb890a80379f491d436458add8f0ed
Diffstat (limited to 'contrib/libs/flatbuffers/src/idl_gen_csharp.cpp')
-rw-r--r-- | contrib/libs/flatbuffers/src/idl_gen_csharp.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/contrib/libs/flatbuffers/src/idl_gen_csharp.cpp b/contrib/libs/flatbuffers/src/idl_gen_csharp.cpp index 369460d730..bc84ed6643 100644 --- a/contrib/libs/flatbuffers/src/idl_gen_csharp.cpp +++ b/contrib/libs/flatbuffers/src/idl_gen_csharp.cpp @@ -431,6 +431,10 @@ class CSharpGenerator : public BaseGenerator { if (opts.generate_object_based_api) { GenEnum_ObjectAPI(enum_def, code_ptr, opts); } + + if (enum_def.is_union) { + code += GenUnionVerify(enum_def.underlying_type); + } } bool HasUnionStringValue(const EnumDef &enum_def) const { @@ -846,7 +850,7 @@ class CSharpGenerator : public BaseGenerator { // Force compile time error if not using the same version runtime. code += " public static void ValidateVersion() {"; code += " FlatBufferConstants."; - code += "FLATBUFFERS_23_5_26(); "; + code += "FLATBUFFERS_24_3_7(); "; code += "}\n"; // Generate a special accessor for the table that when used as the root @@ -1755,8 +1759,6 @@ class CSharpGenerator : public BaseGenerator { code += " }\n"; code += "}\n\n"; - code += GenUnionVerify(enum_def.underlying_type); - // JsonConverter if (opts.cs_gen_json_serializer) { if (enum_def.attributes.Lookup("private")) { |