aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/php/ext/grpc/call.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/php/ext/grpc/call.h')
-rw-r--r--[-rwxr-xr-x]src/php/ext/grpc/call.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/php/ext/grpc/call.h b/src/php/ext/grpc/call.h
index c3b18d66cb..232c5d7cf2 100755..100644
--- a/src/php/ext/grpc/call.h
+++ b/src/php/ext/grpc/call.h
@@ -13,15 +13,14 @@
#include "grpc/grpc.h"
// Throw an exception if error_code is not OK
-#define MAYBE_THROW_CALL_ERROR(func_name, error_code) \
- do{ \
- if(error_code != GRPC_CALL_OK) { \
- zend_throw_exception(spl_ce_LogicException, \
- #func_name " was called incorrectly", \
- (long)error_code TSRMLS_CC); \
- } \
- } while(0)
-
+#define MAYBE_THROW_CALL_ERROR(func_name, error_code) \
+ do { \
+ if (error_code != GRPC_CALL_OK) { \
+ zend_throw_exception(spl_ce_LogicException, \
+ #func_name " was called incorrectly", \
+ (long)error_code TSRMLS_CC); \
+ } \
+ } while (0)
/* Class entry for the Call PHP class */
zend_class_entry *grpc_ce_call;