FlatBuffers Version 22.9.24 (#7547)

This commit is contained in:
Derek Bailey
2022-09-27 11:55:25 -07:00
committed by GitHub
parent cfe157ec56
commit 76ddae006f
129 changed files with 263 additions and 241 deletions

View File

@@ -655,7 +655,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_2_0_8(); ";
code += "FLATBUFFERS_22_9_24(); ";
code += "}\n";
// Generate a special accessor for the table that when used as the root

View File

@@ -665,7 +665,7 @@ class JavaGenerator : public BaseGenerator {
// Force compile time error if not using the same version runtime.
code += " public static void ValidateVersion() {";
code += " Constants.";
code += "FLATBUFFERS_2_0_8(); ";
code += "FLATBUFFERS_22_9_24(); ";
code += "}\n";
// Generate a special accessor for the table that when used as the root

View File

@@ -505,7 +505,7 @@ class KotlinGenerator : public BaseGenerator {
// runtime.
GenerateFunOneLine(
writer, "validateVersion", "", "",
[&]() { writer += "Constants.FLATBUFFERS_2_0_8()"; },
[&]() { writer += "Constants.FLATBUFFERS_22_9_24()"; },
options.gen_jvmstatic);
GenerateGetRootAsAccessors(namer_.Type(struct_def), writer, options);

View File

@@ -1874,7 +1874,7 @@ class SwiftGenerator : public BaseGenerator {
}
std::string ValidateFunc() {
return "static func validateVersion() { FlatBuffersVersion_2_0_8() }";
return "static func validateVersion() { FlatBuffersVersion_22_9_24() }";
}
std::string GenType(const Type &type,