diff options
author | Wouter van Oortmerssen <aardappel@gmail.com> | 2021-05-10 11:14:47 -0700 |
---|---|---|
committer | Wouter van Oortmerssen <aardappel@gmail.com> | 2021-05-10 11:14:47 -0700 |
commit | 8a7d013f855821d6482038cc89078d082fdaea95 (patch) | |
tree | 3fb10d8acfa97bc065d1fdd13b98d3c592e7b957 /src | |
parent | 170af59788e07eb04b24fd19921bab286d637a40 (diff) | |
download | flatbuffers-8a7d013f855821d6482038cc89078d082fdaea95.tar.gz flatbuffers-8a7d013f855821d6482038cc89078d082fdaea95.tar.bz2 flatbuffers-8a7d013f855821d6482038cc89078d082fdaea95.zip |
Updated main version numbers to 2.0
Diffstat (limited to 'src')
-rw-r--r-- | src/idl_gen_csharp.cpp | 2 | ||||
-rw-r--r-- | src/idl_gen_java.cpp | 2 | ||||
-rw-r--r-- | src/idl_gen_kotlin.cpp | 2 | ||||
-rw-r--r-- | src/idl_gen_swift.cpp | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/idl_gen_csharp.cpp b/src/idl_gen_csharp.cpp index a5423a23..681ab6d6 100644 --- a/src/idl_gen_csharp.cpp +++ b/src/idl_gen_csharp.cpp @@ -553,7 +553,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_12_0(); "; + code += "FLATBUFFERS_2_0_0(); "; code += "}\n"; // Generate a special accessor for the table that when used as the root diff --git a/src/idl_gen_java.cpp b/src/idl_gen_java.cpp index 9d1d35a7..cfd3a55c 100644 --- a/src/idl_gen_java.cpp +++ b/src/idl_gen_java.cpp @@ -591,7 +591,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_12_0(); "; + code += "FLATBUFFERS_2_0_0(); "; code += "}\n"; // Generate a special accessor for the table that when used as the root diff --git a/src/idl_gen_kotlin.cpp b/src/idl_gen_kotlin.cpp index 4c921958..fb4ce87a 100644 --- a/src/idl_gen_kotlin.cpp +++ b/src/idl_gen_kotlin.cpp @@ -494,7 +494,7 @@ class KotlinGenerator : public BaseGenerator { // runtime. GenerateFunOneLine( writer, "validateVersion", "", "", - [&]() { writer += "Constants.FLATBUFFERS_1_12_0()"; }, + [&]() { writer += "Constants.FLATBUFFERS_2_0_0()"; }, options.gen_jvmstatic); GenerateGetRootAsAccessors(Esc(struct_def.name), writer, options); diff --git a/src/idl_gen_swift.cpp b/src/idl_gen_swift.cpp index 9e48f820..3fffd394 100644 --- a/src/idl_gen_swift.cpp +++ b/src/idl_gen_swift.cpp @@ -1482,7 +1482,7 @@ class SwiftGenerator : public BaseGenerator { } std::string ValidateFunc() { - return "static func validateVersion() { FlatBuffersVersion_1_12_0() }"; + return "static func validateVersion() { FlatBuffersVersion_2_0_0() }"; } std::string GenType(const Type &type, |