Skip to content
Snippets Groups Projects
Commit 757e84ef authored by Mark D. Roth's avatar Mark D. Roth
Browse files

Add 'extern "C"' to error.h.

parent 6f6f94fc
No related branches found
No related tags found
No related merge requests found
...@@ -40,6 +40,10 @@ ...@@ -40,6 +40,10 @@
#include <grpc/status.h> #include <grpc/status.h>
#include <grpc/support/time.h> #include <grpc/support/time.h>
#ifdef __cplusplus
extern "C" {
#endif
/// Opaque representation of an error. /// Opaque representation of an error.
/// Errors are refcounted objects that represent the result of an operation. /// Errors are refcounted objects that represent the result of an operation.
/// Ownership laws: /// Ownership laws:
...@@ -204,4 +208,8 @@ bool grpc_log_if_error(const char *what, grpc_error *error, const char *file, ...@@ -204,4 +208,8 @@ bool grpc_log_if_error(const char *what, grpc_error *error, const char *file,
#define GRPC_LOG_IF_ERROR(what, error) \ #define GRPC_LOG_IF_ERROR(what, error) \
grpc_log_if_error((what), (error), __FILE__, __LINE__) grpc_log_if_error((what), (error), __FILE__, __LINE__)
#ifdef __cplusplus
}
#endif
#endif /* GRPC_CORE_LIB_IOMGR_ERROR_H */ #endif /* GRPC_CORE_LIB_IOMGR_ERROR_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment