FlatBuffers Version 22.12.06 (#7702)

This commit is contained in:
Derek Bailey
2022-12-06 22:54:49 -08:00
committed by GitHub
parent 0e79e56427
commit acf39ff056
161 changed files with 242 additions and 238 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_11_23(); ";
code += "FLATBUFFERS_22_12_06(); ";
code += "}\n";
// Generate a special accessor for the table that when used as the root

View File

@@ -681,7 +681,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_11_23(); ";
code += "FLATBUFFERS_22_12_06(); ";
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_11_23()"; },
[&]() { writer += "Constants.FLATBUFFERS_22_12_06()"; },
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_11_23() }";
return "static func validateVersion() { FlatBuffersVersion_22_12_06() }";
}
std::string GenType(const Type &type,