[Compiler] Make the code generator pointer mutable in PluginMain (#34170)

This will allow us to pass some extra initialization information from
the protobuf plugin code before the build actually starts
pull/34187/head
Mike Kruskal 2 years ago committed by GitHub
parent f6fd5172ad
commit ac3b9ba80b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/compiler/config.h

@ -40,8 +40,7 @@ namespace protobuf {
namespace compiler {
typedef GRPC_CUSTOM_CODEGENERATOR CodeGenerator;
typedef GRPC_CUSTOM_GENERATORCONTEXT GeneratorContext;
static inline int PluginMain(int argc, char* argv[],
const CodeGenerator* generator) {
static inline int PluginMain(int argc, char* argv[], CodeGenerator* generator) {
return GRPC_CUSTOM_PLUGINMAIN(argc, argv, generator);
}
static inline void ParseGeneratorParameter(

Loading…
Cancel
Save