|
|
@ -118,11 +118,11 @@ class ObjectiveCGrpcGenerator : public grpc::protobuf::compiler::CodeGenerator { |
|
|
|
Write(context, file_name + ".pbrpc.h", |
|
|
|
Write(context, file_name + ".pbrpc.h", |
|
|
|
PreprocIfNot(kForwardDeclare, imports) + "\n" + |
|
|
|
PreprocIfNot(kForwardDeclare, imports) + "\n" + |
|
|
|
PreprocIfNot(kProtocolOnly, system_imports) + "\n" + |
|
|
|
PreprocIfNot(kProtocolOnly, system_imports) + "\n" + |
|
|
|
PreprocIfElse(kForwardDeclare, class_declarations, |
|
|
|
class_declarations + "\n" + |
|
|
|
class_imports) + |
|
|
|
PreprocIfNot(kForwardDeclare, class_imports) + "\n" + |
|
|
|
"\n" + forward_declarations + "\n" + kNonNullBegin + "\n" + |
|
|
|
forward_declarations + "\n" + kNonNullBegin + "\n" + protocols + |
|
|
|
protocols + "\n" + PreprocIfNot(kProtocolOnly, interfaces) + |
|
|
|
"\n" + PreprocIfNot(kProtocolOnly, interfaces) + "\n" + |
|
|
|
"\n" + kNonNullEnd + "\n"); |
|
|
|
kNonNullEnd + "\n"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|