diff options
author | Vijay Pai <vpai@google.com> | 2017-12-19 10:17:11 -0800 |
---|---|---|
committer | Vijay Pai <vpai@google.com> | 2018-01-08 15:12:55 -0800 |
commit | ab0065478419c785e21012fbbeb2c28b5a37d3b3 (patch) | |
tree | c0211c6113b4513d0b372e0d8615000cc2bdff73 /include | |
parent | 37abc4ae7b295651d739bdc1f9071af49d4831b8 (diff) |
Tag new #else and #endif blocks with comments
Diffstat (limited to 'include')
-rw-r--r-- | include/grpc++/impl/codegen/method_handler_impl.h | 4 | ||||
-rw-r--r-- | include/grpc/impl/codegen/port_platform.h | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/include/grpc++/impl/codegen/method_handler_impl.h b/include/grpc++/impl/codegen/method_handler_impl.h index 41c287231f..ed6c146e6c 100644 --- a/include/grpc++/impl/codegen/method_handler_impl.h +++ b/include/grpc++/impl/codegen/method_handler_impl.h @@ -45,9 +45,9 @@ Status CatchingFunctionHandler(Callable&& handler) { } catch (...) { return Status(StatusCode::UNKNOWN, "Exception in method handler"); } -#else +#else // GRPC_ALLOW_EXCEPTIONS return handler(); -#endif +#endif // GRPC_ALLOW_EXCEPTIONS } /// A wrapper class of an application provided rpc method handler. diff --git a/include/grpc/impl/codegen/port_platform.h b/include/grpc/impl/codegen/port_platform.h index becb16b5b8..a03c31dc9d 100644 --- a/include/grpc/impl/codegen/port_platform.h +++ b/include/grpc/impl/codegen/port_platform.h @@ -483,14 +483,14 @@ typedef unsigned __int64 uint64_t; * 0 on non-Windows platforms unless the compiler defines __EXCEPTIONS */ #ifdef GPR_WINDOWS #define GRPC_ALLOW_EXCEPTIONS 1 -#else +#else /* GPR_WINDOWS */ #ifdef __EXCEPTIONS #define GRPC_ALLOW_EXCEPTIONS 1 -#else +#else /* __EXCEPTIONS */ #define GRPC_ALLOW_EXCEPTIONS 0 -#endif -#endif -#endif +#endif /* __EXCEPTIONS */ +#endif /* __GPR_WINDOWS */ +#endif /* GRPC_ALLOW_EXCEPTIONS */ #ifndef __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS |