Add comment for grpc_error_get_int().

Explain that the input parameter cannot be nullptr.
pull/16932/head
Soheil Hassas Yeganeh 6 years ago
parent 3a9411ca1e
commit 24b6d7194f
  1. 2
      src/core/lib/iomgr/error.h

@ -194,6 +194,8 @@ inline void grpc_error_unref(grpc_error* err) {
grpc_error* grpc_error_set_int(grpc_error* src, grpc_error_ints which,
intptr_t value) GRPC_MUST_USE_RESULT;
/// It is an error to pass nullptr as `p`. Caller should allocate a dummy
/// intptr_t for `p`, even if the value of `p` is not used.
bool grpc_error_get_int(grpc_error* error, grpc_error_ints which, intptr_t* p);
/// This call takes ownership of the slice; the error is responsible for
/// eventually unref-ing it.

Loading…
Cancel
Save