Replacing GPR_ASSERT with c assert
Latest GRPC >= 2.66 has dropped GRPC_ASSERT macro [1]
[1] 0e23c2259d
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
1f6a0726d9
commit
ece56adf4d
|
|
@ -2,6 +2,15 @@
|
|||
#include <grpc/support/log.h>
|
||||
#include <grpcpp/support/status.h>
|
||||
#include "etcd/v3/action_constants.hpp"
|
||||
#include <cstdlib>
|
||||
|
||||
#ifndef GPR_ASSERT
|
||||
#define GPR_ASSERT(x) \
|
||||
if (!(x)) { \
|
||||
fprintf(stderr, "%s:%d assert failed\n", __FILE__, __LINE__); \
|
||||
abort(); \
|
||||
}
|
||||
#endif
|
||||
|
||||
etcdv3::Action::Action(etcdv3::ActionParameters const& params) {
|
||||
parameters = params;
|
||||
|
|
|
|||
Loading…
Reference in New Issue