mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-17 12:45:18 +00:00
pre-tag version bump for 1.12
Change-Id: I84a9365e9d8a1afe333b1df85058401ffe0a6b7c
This commit is contained in:
@@ -544,7 +544,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_1_11_1(); ";
|
||||
code += "FLATBUFFERS_1_12_0(); ";
|
||||
code += "}\n";
|
||||
|
||||
// Generate a special accessor for the table that when used as the root
|
||||
|
||||
@@ -592,7 +592,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_1_11_1(); ";
|
||||
code += "FLATBUFFERS_1_12_0(); ";
|
||||
code += "}\n";
|
||||
|
||||
// Generate a special accessor for the table that when used as the root
|
||||
|
||||
@@ -457,7 +457,7 @@ class KotlinGenerator : public BaseGenerator {
|
||||
// Force compile time error if not using the same version
|
||||
// runtime.
|
||||
GenerateFunOneLine(writer, "validateVersion", "", "", [&]() {
|
||||
writer += "Constants.FLATBUFFERS_1_11_1()";
|
||||
writer += "Constants.FLATBUFFERS_1_12_0()";
|
||||
});
|
||||
|
||||
GenerateGetRootAsAccessors(Esc(struct_def.name), writer);
|
||||
|
||||
@@ -790,7 +790,7 @@ class SwiftGenerator : public BaseGenerator {
|
||||
}
|
||||
|
||||
std::string ValidateFunc() {
|
||||
return "\tstatic func validateVersion() { FlatBuffersVersion_1_11_1() }";
|
||||
return "\tstatic func validateVersion() { FlatBuffersVersion_1_12_0() }";
|
||||
}
|
||||
|
||||
std::string GenType(const Type &type) const {
|
||||
|
||||
Reference in New Issue
Block a user