diff options
author | Nicolas Noble <nicolasnoble@users.noreply.github.com> | 2016-04-27 17:10:37 -0700 |
---|---|---|
committer | Nicolas Noble <nicolasnoble@users.noreply.github.com> | 2016-04-27 17:10:37 -0700 |
commit | b143ca0f3619840c26038ed746010e08104561b3 (patch) | |
tree | 012ca6518db409915740c71887b3d1463c8540b4 /src/compiler/config.h | |
parent | 8cb50edbed1e75ab39c5dbd513a702d779ebf75a (diff) | |
parent | 7c0e1eec85d74c5b1c8d9565f0bc28194aebae4f (diff) |
Merge pull request #6284 from jtattermusch/csharp_optional_client_codegen
Add new cmdline options to C# codegen.
Diffstat (limited to 'src/compiler/config.h')
-rw-r--r-- | src/compiler/config.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/compiler/config.h b/src/compiler/config.h index a534b119d2..d8b95818db 100644 --- a/src/compiler/config.h +++ b/src/compiler/config.h @@ -70,6 +70,11 @@ #define GRPC_CUSTOM_PLUGINMAIN ::google::protobuf::compiler::PluginMain #endif +#ifndef GRPC_CUSTOM_PARSEGENERATORPARAMETER +#include <google/protobuf/compiler/code_generator.h> +#define GRPC_CUSTOM_PARSEGENERATORPARAMETER ::google::protobuf::compiler::ParseGeneratorParameter +#endif + namespace grpc { namespace protobuf { typedef GRPC_CUSTOM_DESCRIPTOR Descriptor; @@ -85,6 +90,11 @@ static inline int PluginMain(int argc, char* argv[], const CodeGenerator* generator) { return GRPC_CUSTOM_PLUGINMAIN(argc, argv, generator); } +static inline void ParseGeneratorParameter(const string& parameter, + std::vector<std::pair<string, string> >* options) { + GRPC_CUSTOM_PARSEGENERATORPARAMETER(parameter, options); +} + } // namespace compiler namespace io { typedef GRPC_CUSTOM_PRINTER Printer; |