[export] [Gpr_To_Absl_Logging] Remove GPR_ASSERT macro.
This was removed as a part of gpr to absl migration. ---- DO NOT SUBMIT. This PR is for testing purposes only. [cl/640773712](http://cl/640773712) PiperOrigin-RevId: 640773712
This commit is contained in:
parent
e4b7d46f43
commit
5c67a7aba6
|
|
@ -88,18 +88,6 @@ GPRAPI void gpr_set_log_function(gpr_log_func func);
|
|||
GPRAPI void gpr_assertion_failed(const char* filename, int line,
|
||||
const char* message) GPR_ATTRIBUTE_NORETURN;
|
||||
|
||||
/** abort() the process if x is zero, having written a line to the log.
|
||||
|
||||
Intended for internal invariants. If the error can be recovered from,
|
||||
without the possibility of corruption, or might best be reflected via
|
||||
an exception in a higher-level language, consider returning error code. */
|
||||
#define GPR_ASSERT(x) \
|
||||
do { \
|
||||
if (GPR_UNLIKELY(!(x))) { \
|
||||
gpr_assertion_failed(__FILE__, __LINE__, #x); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue