mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-03 04:21:13 +00:00
adds code gen for optional scalars in swift (#6038)
Adds swift test code Replaces if statments Adds swift to supported languages for optionals Moved std::string to auto Adds nullable scalars support in object api
This commit is contained in:
@@ -3457,7 +3457,7 @@ void NullableScalarsTest() {
|
||||
|
||||
// Test if nullable scalars are allowed for each language.
|
||||
const int kNumLanguages = 17;
|
||||
const auto supported = flatbuffers::IDLOptions::kRust;
|
||||
const auto supported = (flatbuffers::IDLOptions::kRust | flatbuffers::IDLOptions::kSwift);
|
||||
for (int lang=0; lang<kNumLanguages; lang++) {
|
||||
flatbuffers::IDLOptions opts;
|
||||
opts.lang_to_generate |= 1 << lang;
|
||||
|
||||
Reference in New Issue
Block a user