Skip to content

Commit

Permalink
supports proto3 optional fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
Memory-afk authored Jan 25, 2024
1 parent 8c201f6 commit 991a056
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions protoc-c/c_generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ class PROTOC_C_EXPORT CGenerator : public CodeGenerator {
const std::string& parameter,
OutputDirectory* output_directory,
std::string* error) const;

uint64_t GetSupportedFeatures() const override {
// Indicate that this code generator supports proto3 optional fields.
return FEATURE_PROTO3_OPTIONAL;
}
};

} // namespace c
Expand Down

0 comments on commit 991a056

Please sign in to comment.