diff options
Diffstat (limited to 'src/req_wrap-inl.h')
-rw-r--r-- | src/req_wrap-inl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/req_wrap-inl.h b/src/req_wrap-inl.h index 6d0c57cd81..4a7984e649 100644 --- a/src/req_wrap-inl.h +++ b/src/req_wrap-inl.h @@ -33,6 +33,11 @@ void ReqWrap<T>::Dispatched() { req_.data = this; } +template <typename T> +ReqWrap<T>* ReqWrap<T>::from_req(T* req) { + return ContainerOf(&ReqWrap<T>::req_, req); +} + } // namespace node #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS |