diff options
author | 2018-04-27 17:07:49 -0700 | |
---|---|---|
committer | 2018-04-27 17:07:49 -0700 | |
commit | 141932beb4104d3a71bb9baa4e18bace71e25ea8 (patch) | |
tree | 60a5f1caf15910104c2e745d9dc38798f16973ca | |
parent | b649422741a32cd97740fed1035a0e5c317a6dd7 (diff) | |
parent | a3ba733a84888297d4cff7bc88bb46c88064f1ae (diff) |
Merge pull request #15204 from yashykt/debugassert
Add GPR_DEBUG_ASSERT
-rw-r--r-- | include/grpc/support/log.h | 6 |
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 |