aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-02-27 10:07:44 -0800
committerGravatar Muxi Yan <mxyan@google.com>2018-02-27 10:07:44 -0800
commita7ad717d0ad819c364f97d604214cad884943570 (patch)
treeaf38ce6057ec69caa967be4b23f4a336e09108b0 /src
parenteadb7012d6d0331fbe0c647aaf3c4b7396cde143 (diff)
Fix a typo in PreprocIfNotElse
Diffstat (limited to 'src')
-rw-r--r--src/compiler/objective_c_generator_helpers.h2
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");
}