FlatBuffers Version 23.1.4 (#7758)

This commit is contained in:
Derek Bailey
2023-01-04 15:22:46 -08:00
committed by GitHub
parent 3b2eb77595
commit af9ceabeef
163 changed files with 287 additions and 269 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_22_12_06(); ";
code += "FLATBUFFERS_23_1_4(); ";
code += "}\n";
// Generate a special accessor for the table that when used as the root

View File

@@ -683,7 +683,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_22_12_06(); ";
code += "FLATBUFFERS_23_1_4(); ";
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_22_12_06()"; },
[&]() { writer += "Constants.FLATBUFFERS_23_1_4()"; },
options.gen_jvmstatic);
GenerateGetRootAsAccessors(namer_.Type(struct_def), writer, options);

View File

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