diff options
author | 2018-02-27 10:07:44 -0800 | |
---|---|---|
committer | 2018-02-27 10:07:44 -0800 | |
commit | a7ad717d0ad819c364f97d604214cad884943570 (patch) | |
tree | af38ce6057ec69caa967be4b23f4a336e09108b0 /src | |
parent | eadb7012d6d0331fbe0c647aaf3c4b7396cde143 (diff) |
Fix a typo in PreprocIfNotElse
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/objective_c_generator_helpers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/objective_c_generator_helpers.h b/src/compiler/objective_c_generator_helpers.h index 3dffe6bd53..a68a271be7 100644 --- a/src/compiler/objective_c_generator_helpers.h +++ b/src/compiler/objective_c_generator_helpers.h @@ -77,7 +77,7 @@ inline ::grpc::string PreprocIfElse(const ::grpc::string& symbol, inline ::grpc::string PreprocIfNotElse(const ::grpc::string& symbol, const ::grpc::string& if_true, const ::grpc::string& if_false) { - return ::grpc::string("#if " + PreprocConditional(symbol, false) + "\n" + + return ::grpc::string("#if " + PreprocConditional(symbol, true) + "\n" + if_true + "#else\n" + if_false + "#endif\n"); } |