diff options
author | Tyson Roberts <nall@google.com> | 2018-03-20 17:44:47 +0900 |
---|---|---|
committer | Tyson Roberts <nall@google.com> | 2018-03-20 17:44:47 +0900 |
commit | 8827bc91eb1dbb6b30792c206085cb9a1a01b8a6 (patch) | |
tree | 7f212c118575690493382b0103ca56fa9a069966 /src/compiler/objective_c_plugin.cc | |
parent | 373866da41cf86ec23fa3420b08a3d0a55151b58 (diff) |
Changes \#if forward_declare <forward_decl> \#else <class_imports> \#end in .h files to <forward_decl> \#if <class_imports>
Diffstat (limited to 'src/compiler/objective_c_plugin.cc')
-rw-r--r-- | src/compiler/objective_c_plugin.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/objective_c_plugin.cc b/src/compiler/objective_c_plugin.cc index 76703d79cd..2581681999 100644 --- a/src/compiler/objective_c_plugin.cc +++ b/src/compiler/objective_c_plugin.cc @@ -118,8 +118,8 @@ class ObjectiveCGrpcGenerator : public grpc::protobuf::compiler::CodeGenerator { Write(context, file_name + ".pbrpc.h", PreprocIfNot(kForwardDeclare, imports) + "\n" + PreprocIfNot(kProtocolOnly, system_imports) + "\n" + - PreprocIfElse(kForwardDeclare, class_declarations, - class_imports) + + class_declarations + "\n" + PreprocIfNot(kForwardDeclare, class_imports) + "\n" + forward_declarations + "\n" + kNonNullBegin + "\n" + protocols + "\n" + PreprocIfNot(kProtocolOnly, interfaces) + "\n" + kNonNullEnd + "\n"); |