aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/grpc/compiler/src/java_plugin/cpp/java_generator.h
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/grpc/compiler/src/java_plugin/cpp/java_generator.h')
-rw-r--r--third_party/grpc/compiler/src/java_plugin/cpp/java_generator.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/third_party/grpc/compiler/src/java_plugin/cpp/java_generator.h b/third_party/grpc/compiler/src/java_plugin/cpp/java_generator.h
index 6754249ec3..ab265d06c7 100644
--- a/third_party/grpc/compiler/src/java_plugin/cpp/java_generator.h
+++ b/third_party/grpc/compiler/src/java_plugin/cpp/java_generator.h
@@ -10,15 +10,12 @@
class LogHelper {
std::ostream* os;
- bool abort;
public:
- LogHelper(std::ostream* os, bool abort) : os(os), abort(abort) {}
+ LogHelper(std::ostream* os) : os(os) {}
~LogHelper() {
*os << std::endl;
- if (abort) {
- ::abort();
- }
+ ::abort();
}
std::ostream& get_os() {
return *os;
@@ -27,7 +24,7 @@ class LogHelper {
// Abort the program after logging the mesage if the given condition is not
// true. Otherwise, do nothing.
-#define GRPC_CODEGEN_CHECK(x) !(x) && LogHelper(&std::cerr, true).get_os() \
+#define GRPC_CODEGEN_CHECK(x) !(x) && LogHelper(&std::cerr).get_os() \
<< "CHECK FAILED: " << __FILE__ << ":" \
<< __LINE__ << ": "
@@ -53,7 +50,7 @@ string ServiceClassName(const google::protobuf::ServiceDescriptor* service);
void GenerateService(const google::protobuf::ServiceDescriptor* service,
google::protobuf::io::ZeroCopyOutputStream* out,
ProtoFlavor flavor,
- bool enable_deprecated);
+ bool disable_version);
} // namespace java_grpc_generator