FlatBuffers Version 23.5.8 (#7943)

This commit is contained in:
RishabhDeep Singh
2023-05-09 20:35:25 +05:30
committed by GitHub
parent e6e38a8d17
commit 13fc75cb6b
180 changed files with 302 additions and 259 deletions

View File

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

View File

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

View File

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

View File

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