diff options
author | 2015-11-24 08:15:05 -0800 | |
---|---|---|
committer | 2015-11-24 08:15:05 -0800 | |
commit | 7b4356194d33c4582c487d0004ef17ea7b138839 (patch) | |
tree | 692e38436611711c51badf264d395dede1eb1e4f /src/core/surface/call.c | |
parent | 906e3bcfb5a32a25af2f00dd4679052f8a608b3f (diff) |
Finish initial scrape, clang-format
Diffstat (limited to 'src/core/surface/call.c')
-rw-r--r-- | src/core/surface/call.c | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/src/core/surface/call.c b/src/core/surface/call.c index 49a0c7e04e..315eeb0449 100644 --- a/src/core/surface/call.c +++ b/src/core/surface/call.c @@ -341,21 +341,18 @@ grpc_completion_queue *grpc_call_get_completion_queue(grpc_call *call) { } #ifdef GRPC_STREAM_REFCOUNT_DEBUG -void grpc_call_internal_ref(grpc_call *c, const char *reason) { - grpc_call_stack_ref(CALL_STACK_FROM_CALL(c), reason); -} -void grpc_call_internal_unref(grpc_exec_ctx *exec_ctx, grpc_call *c, - const char *reason) { - grpc_call_stack_unref(exec_ctx, CALL_STACK_FROM_CALL(c), reason); -} +#define REF_REASON reason +#define REF_ARG , const char *reason #else -void grpc_call_internal_ref(grpc_call *c) { - grpc_call_stack_ref(CALL_STACK_FROM_CALL(c)); +#define REF_REASON "" +#define REF_ARG +#endif +void grpc_call_internal_ref(grpc_call *c REF_ARG) { + GRPC_CALL_STACK_REF(CALL_STACK_FROM_CALL(c), REF_REASON); } -void grpc_call_internal_unref(grpc_exec_ctx *exec_ctx, grpc_call *c) { - grpc_call_stack_unref(exec_ctx, CALL_STACK_FROM_CALL(c)); +void grpc_call_internal_unref(grpc_exec_ctx *exec_ctx, grpc_call *c REF_ARG) { + GRPC_CALL_STACK_UNREF(exec_ctx, CALL_STACK_FROM_CALL(c), REF_REASON); } -#endif static void destroy_call(grpc_exec_ctx *exec_ctx, void *call, int success) { size_t i; |