aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc/support
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2018-04-26 16:33:51 -0700
committerGravatar Yash Tibrewal <yashkt@google.com>2018-04-26 16:35:41 -0700
commita3ba733a84888297d4cff7bc88bb46c88064f1ae (patch)
tree734f2e257da28caccb4f59167b98b58410ae3da2 /include/grpc/support
parent6f3cadb687f7d9e3da3d49b18c3f68463352db6b (diff)
Add GPR_DEBUG_ASSERT
Diffstat (limited to 'include/grpc/support')
-rw-r--r--include/grpc/support/log.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/grpc/support/log.h b/include/grpc/support/log.h
index b6fbbde23c..1837d4bd22 100644
--- a/include/grpc/support/log.h
+++ b/include/grpc/support/log.h
@@ -99,6 +99,12 @@ GPRAPI void gpr_set_log_function(gpr_log_func func);
} \
} while (0)
+#ifndef NDEBUG
+#define GPR_DEBUG_ASSERT(x) GPR_ASSERT(x)
+#else
+#define GPR_DEBUG_ASSERT(x)
+#endif
+
#ifdef __cplusplus
}
#endif