diff options
Diffstat (limited to 'src/node_wrap.h')
-rw-r--r-- | src/node_wrap.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/node_wrap.h b/src/node_wrap.h index 0f56f6ddf71..798d94334b7 100644 --- a/src/node_wrap.h +++ b/src/node_wrap.h @@ -28,6 +28,8 @@ #include "tcp_wrap.h" #include "tty_wrap.h" #include "udp_wrap.h" +#include "util.h" +#include "util-inl.h" #include "uv.h" #include "v8.h" @@ -37,15 +39,15 @@ namespace node { do { \ if (env->tcp_constructor_template().IsEmpty() == false && \ env->tcp_constructor_template()->HasInstance(obj)) { \ - TCPWrap* const wrap = TCPWrap::Unwrap(obj); \ + TCPWrap* const wrap = UnwrapObject<TCPWrap>(obj); \ BODY \ } else if (env->tty_constructor_template().IsEmpty() == false && \ env->tty_constructor_template()->HasInstance(obj)) { \ - TTYWrap* const wrap = TTYWrap::Unwrap(obj); \ + TTYWrap* const wrap = UnwrapObject<TTYWrap>(obj); \ BODY \ } else if (env->pipe_constructor_template().IsEmpty() == false && \ env->pipe_constructor_template()->HasInstance(obj)) { \ - PipeWrap* const wrap = PipeWrap::Unwrap(obj); \ + PipeWrap* const wrap = UnwrapObject<PipeWrap>(obj); \ BODY \ } \ } while (0) |