aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/compiler/config.h
diff options
context:
space:
mode:
authorGravatar Nicolas Noble <nicolasnoble@users.noreply.github.com>2016-04-27 17:10:37 -0700
committerGravatar Nicolas Noble <nicolasnoble@users.noreply.github.com>2016-04-27 17:10:37 -0700
commitb143ca0f3619840c26038ed746010e08104561b3 (patch)
tree012ca6518db409915740c71887b3d1463c8540b4 /src/compiler/config.h
parent8cb50edbed1e75ab39c5dbd513a702d779ebf75a (diff)
parent7c0e1eec85d74c5b1c8d9565f0bc28194aebae4f (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.h10
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;